function e(e,s){for(var r=0;r0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return s}(j);function Y(e){return e}function X(e){if(e===void 0){e=Number.POSITIVE_INFINITY}return Q(Y,e)}function ee(e,s){return s?z(e,s):new y(K(e))}function se(){for(var e=arguments.length,s=new Array(e),r=0;r1&&"number"==typeof s[s.length-1]&&(n=s.pop())):"number"==typeof i&&(n=s.pop()),null===a&&1===s.length&&s[0]instanceof y?s[0]:X(n)(ee(s,a))}function re(){return function(e){return e.lift(new ne(e))}}var ne=function(){function e(e){this.connectable=e}var s=e.prototype;s.call=function e(s,r){var n=this.connectable;n._refCount++;var a=new ae(s,n),i=r.subscribe(a);return a.closed||(a.connection=n.connect()),i};return e}();var ae=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.connectable=r;return n}var r=s.prototype;r._unsubscribe=function e(){var s=this.connectable;if(!s)return void(this.connection=null);this.connectable=null;var r=s._refCount;if(r<=0)return void(this.connection=null);if(s._refCount=r-1,r>1)return void(this.connection=null);var n=this.connection,a=s._connection;this.connection=null,!a||n&&a!==n||a.unsubscribe()};return s}(x);var ie=function(e){t(s,e);function s(s,r){var n;n=e.call(this)||this,n.source=s,n.subjectFactory=r,n._refCount=0,n._isComplete=!1;return n}var r=s.prototype;r._subscribe=function e(s){return this.getSubject().subscribe(s)};r.getSubject=function e(){var s=this._subject;return s&&!s.isStopped||(this._subject=this.subjectFactory()),this._subject};r.connect=function e(){var s=this._connection;return s||(this._isComplete=!1,(s=this._connection=new v).add(this.source.subscribe(new oe(this.getSubject(),this))),s.closed&&(this._connection=null,s=v.EMPTY)),s};r.refCount=function e(){return re()(this)};return s}(y).prototype,te={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ie._subscribe},_isComplete:{value:ie._isComplete,writable:!0},getSubject:{value:ie.getSubject},connect:{value:ie.connect},refCount:{value:ie.refCount}};var oe=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.connectable=r;return n}var r=s.prototype;r._error=function s(r){this._unsubscribe(),e.prototype._error.call(this,r)};r._complete=function s(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)};r._unsubscribe=function e(){var s=this.connectable;if(s){this.connectable=null;var r=s._connection;s._refCount=0,s._subject=null,s._connection=null,r&&r.unsubscribe()}};return s}(A);function le(){return new D}var _e="__parameters__";function we(e,s,r){var a=function(e){return function(){if(e){var s=e.apply(void 0,arguments);for(var r in s){this[r]=s[r]}}}}(s);function i(){for(var e=arguments.length,s=new Array(e),r=0;r ");else if("object"==typeof s){var i=[];for(var t in s){if(s.hasOwnProperty(t)){var o=s[t];i.push(t+":"+("string"==typeof o?JSON.stringify(o):xe(o)))}}a="{"+i.join(", ")+"}"}return""+r+(n?"("+n+")":"")+"["+a+"]: "+e.replace(Ue,"\n ")}var Ge=function e(){};var He=function e(){};function ze(e,s,r){s>=e.length?e.push(r):e.splice(s,0,r)}function We(e,s){return s>=e.length-1?e.pop():e.splice(s,1)[0]}var Qe=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ze=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se)}(),$e="ngDebugContext",Ye="ngOriginalError",Xe="ngErrorLogger";function es(e){return e[$e]}function ss(e){return e[Ye]}function rs(e){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}var s=e.prototype;s.getInertBodyElement_XHR=function e(s){s=""+s+"";try{s=encodeURI(s)}catch(a){return null}var r=new XMLHttpRequest;r.responseType="document",r.open("GET","data:text/html;charset=utf-8,"+s,!1),r.send(void 0);var n=r.response.body;return n.removeChild(n.firstChild),n};s.getInertBodyElement_DOMParser=function e(s){s=""+s+"";try{var r=(new window.DOMParser).parseFromString(s,"text/html").body;return r.removeChild(r.firstChild),r}catch(n){return null}};s.getInertBodyElement_InertDocument=function e(s){var r=this.inertDocument.createElement("template");return"content"in r?(r.innerHTML=s,r):(this.inertBodyElement.innerHTML=s,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)};s.stripCustomNsAttrs=function e(s){var r=s.attributes;for(var n=r.length-1;0=r.length)break;i=r[a++]}else{a=r.next();if(a.done)break;i=a.value}var t=i;s[t]=!0}return s}function ms(){var e={};for(var s=arguments.length,r=new Array(s),n=0;n"),!0};s.endElement=function e(s){var r=s.nodeName.toLowerCase();vs.hasOwnProperty(r)&&!ps.hasOwnProperty(r)&&(this.buf.push(""))};s.chars=function e(s){this.buf.push(Fs(s))};s.checkClobberedElement=function e(s,r){if(r&&(s.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+s.outerHTML);return r};return e}();var qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hs=/([^\#-~ |!])/g;function Fs(e){return e.replace(/&/g,"&").replace(qs,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(hs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var ys;function bs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ss=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();var Cs=function e(){};var Ts=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),As=/^url\(([^)]+)\)$/,Ds=/([A-Z])/g;function Bs(e){try{return null!=e?e.toString().slice(0,30):e}catch(s){return"[ERROR] Exception while trying to serialize the value"}}var Us=function(){var e=function e(){};return e.__NG_ELEMENT_ID__=function(){return Ps()},e}();var Ps=function e(){},Ks=new Ce("The presence of this token marks an injector as being the root injector."),Is=function e(s,r,n){return new Vs(s,r,n)};var Js=function(){var e=function(){function e(){}e.create=function e(s,r){return Array.isArray(s)?Is(s,r,""):Is(s.providers,s.parent,s.name||"")};return e}();return e.THROW_IF_NOT_FOUND=Ae,e.NULL=new je,e.ngInjectableDef=ve({token:e,providedIn:"any",factory:function e(){return Re(Te)}}),e.__NG_ELEMENT_ID__=-1,e}();var Ms=function e(s){return s},Os=[],Rs=Ms,Ls=function e(){return Array.prototype.slice.call(arguments)},js="\u0275";var Vs=function(){function e(e,s,r){if(s===void 0){s=Js.NULL}if(r===void 0){r=null}this.parent=s,this.source=r;var n=this._records=new Map;n.set(Js,{token:Js,fn:Ms,deps:Os,value:this,useNew:!1}),n.set(Te,{token:Te,fn:Ms,deps:Os,value:this,useNew:!1}),function e(s,r){if(r)if((r=qe(r))instanceof Array)for(var n=0;n-1}(_)||"root"===w.providedIn&&_._def.isRoot))){var l=e._providers.length;return e._def.providers[l]=e._def.providersByKey[s.tokenKey]={flags:5120,value:t.factory,deps:[],index:l,token:s.token},e._providers[l]=Dn,e._providers[l]=Jn(e,e._def.providersByKey[s.tokenKey])}return 4&s.flags?r:e._parent.get(s.token,r)}finally{Oe(n)}var _,w}function Jn(e,s){var r;switch(201347067&s.flags){case 512:r=function(e,s,r){var a=r.length;switch(a){case 0:return new s;case 1:return new s(In(e,r[0]));case 2:return new s(In(e,r[0]),In(e,r[1]));case 3:return new s(In(e,r[0]),In(e,r[1]),In(e,r[2]));default:var i=new Array(a);for(var t=0;t=r.length)&&(s=r.length-1),s<0)return null;var n=r[s];return n.viewContainerParent=null,We(r,s),$r.dirtyParentQueries(n),Rn(n),n}function On(e,s,r){var n=s?dn(s,s.def.lastRenderRootNode):e.renderElement,a=r.renderer.parentNode(n),i=r.renderer.nextSibling(n);hn(r,2,a,i,void 0)}function Rn(e){hn(e,3,null,null,void 0)}var Ln=new Object;function jn(e,s,r,n,a,i){return new Vn(e,s,r,n,a,i)}var Vn=function(e){t(r,e);function r(s,r,n,a,i,t){var o;o=e.call(this)||this,o.selector=s,o.componentType=r,o._inputs=a,o._outputs=i,o.ngContentSelectors=t,o.viewDefFactory=n;return o}var n=r.prototype;n.create=function e(s,r,n,a){if(!a)throw new Error("ngModule should be provided");var i=qn(this.viewDefFactory),t=i.nodes[0].element.componentProvider.nodeIndex,o=$r.createRootView(s,r||[],n,i,a,Ln),l=Wr(o,t).instance;return n&&o.renderer.setAttribute(zr(o,0).renderElement,"ng-version",Er.full),new Gn(o,new Qn(o),l)};s(r,[{key:"inputs",get:function e(){var s=[],r=this._inputs;for(var n in r){s.push({propName:n,templateName:r[n]})}return s}},{key:"outputs",get:function e(){var s=[];for(var r in this._outputs){s.push({propName:r,templateName:this._outputs[r]})}return s}}]);return r}(ir);var Gn=function(e){t(r,e);function r(s,r,n){var a;a=e.call(this)||this,a._view=s,a._viewRef=r,a._component=n,a._elDef=a._view.def.nodes[0],a.hostView=r,a.changeDetectorRef=r,a.instance=n;return a}var n=r.prototype;n.destroy=function e(){this._viewRef.destroy()};n.onDestroy=function e(s){this._viewRef.onDestroy(s)};s(r,[{key:"location",get:function e(){return new pr(zr(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function e(){return new Xn(this._view,this._elDef)}},{key:"componentType",get:function e(){return this._component.constructor}}]);return r}(ar);function Hn(e,s,r){return new zn(e,s,r)}var zn=function(){function e(e,s,r){this._view=e,this._elDef=s,this._data=r,this._embeddedViews=[]}var r=e.prototype;r.clear=function e(){for(var s=this._embeddedViews.length-1;s>=0;s--){var r=Mn(this._data,s);$r.destroyView(r)}};r.get=function e(s){var r=this._embeddedViews[s];if(r){var n=new Qn(r);return n.attachToViewContainerRef(this),n}return null};r.createEmbeddedView=function e(s,r,n){var a=s.createEmbeddedView(r||{});return this.insert(a,n),a};r.createComponent=function e(s,r,n,a,i){var t=n||this.parentInjector;i||s instanceof gr||(i=t.get(Ge));var o=s.create(t,a,void 0,i);return this.insert(o.hostView,r),o};r.insert=function e(s,r){if(s.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=s;return function(e,s,r,n){var a=s.viewContainer._embeddedViews;null==r&&(r=a.length),n.viewContainerParent=e,ze(a,r,n),function(e,s){var r=pn(s);if(!r||r===e||16&s.state)return;s.state|=16;var n=r.template._projectedViews;n||(n=r.template._projectedViews=[]),n.push(s),function(e,r){if(4&r.flags)return;s.parent.def.nodeFlags|=4,r.flags|=4;var n=r.parent;for(;n;){n.childFlags|=4,n=n.parent}}(0,s.parentNodeDef)}(s,n),$r.dirtyParentQueries(n),On(s,r>0?a[r-1]:null,n)}(this._view,this._data,r,n._view),n.attachToViewContainerRef(this),s};r.move=function e(s,r){if(s.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(s._view);return function(e,s,r){var a=e.viewContainer._embeddedViews,i=a[n];We(a,n),null==r&&(r=a.length),ze(a,r,i),$r.dirtyParentQueries(i),Rn(i),On(e,r>0?a[r-1]:null,i)}(this._data,0,r),s};r.indexOf=function e(s){return this._embeddedViews.indexOf(s._view)};r.remove=function e(s){var r=Mn(this._data,s);r&&$r.destroyView(r)};r.detach=function e(s){var r=Mn(this._data,s);return r?new Qn(r):null};s(e,[{key:"element",get:function e(){return new pr(this._data.renderElement)}},{key:"injector",get:function e(){return new Xn(this._view,this._elDef)}},{key:"parentInjector",get:function e(){var s=this._view,r=this._elDef.parent;for(;!r&&s;){r=cn(s),s=s.parent}return s?new Xn(s,r):new Xn(this._view,null)}},{key:"length",get:function e(){return this._embeddedViews.length}}]);return e}();function Wn(e){return new Qn(e)}var Qn=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}var r=e.prototype;r.markForCheck=function e(){wn(this._view)};r.detach=function e(){this._view.state&=-5};r.detectChanges=function e(){var s=this._view.root.rendererFactory;s.begin&&s.begin();try{$r.checkAndUpdateView(this._view)}finally{s.end&&s.end()}};r.checkNoChanges=function e(){$r.checkNoChangesView(this._view)};r.reattach=function e(){this._view.state|=4};r.onDestroy=function e(s){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(s)};r.destroy=function e(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),$r.destroyView(this._view)};r.detachFromAppRef=function e(){this._appRef=null,Rn(this._view),$r.dirtyParentQueries(this._view)};r.attachToAppRef=function e(s){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=s};r.attachToViewContainerRef=function e(s){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=s};s(e,[{key:"rootNodes",get:function e(){return function(e){var s=[];return hn(e,0,void 0,void 0,s),s}(this._view)}},{key:"context",get:function e(){return this._view.context}},{key:"destroyed",get:function e(){return 0!=(128&this._view.state)}}]);return e}();function Zn(e,s){return new $n(e,s)}var $n=function(e){t(r,e);function r(s,r){var n;n=e.call(this)||this,n._parentView=s,n._def=r;return n}var n=r.prototype;n.createEmbeddedView=function e(s){return new Qn($r.createEmbeddedView(this._parentView,this._def,this._def.element.template,s))};s(r,[{key:"elementRef",get:function e(){return new pr(zr(this._parentView,this._def.nodeIndex).renderElement)}}]);return r}(Ir);function Yn(e,s){return new Xn(e,s)}var Xn=function(){function e(e,s){this.view=e,this.elDef=s}var s=e.prototype;s.get=function e(s,r){if(r===void 0){r=Js.THROW_IF_NOT_FOUND}return $r.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:s,tokenKey:en(s)},r)};return e}();function ea(e,s){var r=e.def.nodes[s];if(1&r.flags){var n=zr(e,r.nodeIndex);return r.element.template?n.template:n.renderElement}if(2&r.flags)return Hr(e,r.nodeIndex).renderText;if(20240&r.flags)return Wr(e,r.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+s)}function sa(e){return new ra(e.renderer)}var ra=function(){function e(e){this.delegate=e}var s=e.prototype;s.selectRootElement=function e(s){return this.delegate.selectRootElement(s)};s.createElement=function e(s,r){var n=Tn(r),a=n[0],i=n[1],t=this.delegate.createElement(i,a);return s&&this.delegate.appendChild(s,t),t};s.createViewRoot=function e(s){return s};s.createTemplateAnchor=function e(s){var r=this.delegate.createComment("");return s&&this.delegate.appendChild(s,r),r};s.createText=function e(s,r){var n=this.delegate.createText(r);return s&&this.delegate.appendChild(s,n),n};s.projectNodes=function e(s,r){for(var n=0;n0,s.provider.value,s.provider.deps);if(s.outputs.length)for(var n=0;n0,n=s.provider;switch(201347067&s.flags){case 512:return fa(e,s.parent,r,n.value,n.deps);case 1024:return function(e,s,r,n,a){var i=a.length;switch(i){case 0:return n();case 1:return n(ha(e,s,r,a[0]));case 2:return n(ha(e,s,r,a[0]),ha(e,s,r,a[1]));case 3:return n(ha(e,s,r,a[0]),ha(e,s,r,a[1]),ha(e,s,r,a[2]));default:var t=Array(i);for(var o=0;o0&&(i=setTimeout(function(){a._callbacks=a._callbacks.filter(function(e){return e.timeoutId!==i}),s(a._didWork,a.getPendingTasks())},r)),this._callbacks.push({doneCb:s,timeoutId:i,updateCb:n})};s.whenStable=function e(s,r,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(s,r,n),this._runCallbacksIfReady()};s.getPendingRequestCount=function e(){return this._pendingCount};s.findProviders=function e(s,r,n){return[]};return e}();var fi=function(){function e(){this._applications=new Map,Fi.addToWindow(this)}var s=e.prototype;s.registerApplication=function e(s,r){this._applications.set(s,r)};s.unregisterApplication=function e(s){this._applications.delete(s)};s.unregisterAllApplications=function e(){this._applications.clear()};s.getTestability=function e(s){return this._applications.get(s)||null};s.getAllTestabilities=function e(){return Array.from(this._applications.values())};s.getAllRootElements=function e(){return Array.from(this._applications.keys())};s.findTestabilityInTree=function e(s,r){if(r===void 0){r=!0}return Fi.findTestabilityInTree(this,s,r)};return e}();var qi=function(){function e(){}var s=e.prototype;s.addToWindow=function e(s){};s.findTestabilityInTree=function e(s,r,n){return null};return e}();var hi,Fi=new qi,yi=function e(s,r,n){return s.get(ii).createCompiler([r]).compileModuleAsync(n)},bi=function e(s){return s instanceof gr};var Si=new Ce("AllowMultipleToken");var Ci=function e(s,r){this.name=s,this.token=r};function Ti(e,s,r){if(r===void 0){r=[]}var n="Platform: "+s,a=new Ce(n);return function(s){if(s===void 0){s=[]}var i=Ai();if(!i||i.injector.get(Si,!1))if(e)e(r.concat(s).concat({provide:a,useValue:!0}));else{var t=r.concat(s).concat({provide:a,useValue:!0});!function(e){if(hi&&!hi.destroyed&&!hi.injector.get(Si,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hi=e.get(Di);var s=e.get(za,null);s&&s.forEach(function(e){return e()})}(Js.create({providers:t,name:n}))}return function(e){var s=Ai();if(!s)throw new Error("No platform exists!");if(!s.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return s}(a)}}function Ai(){return hi&&!hi.destroyed?hi:null}var Di=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}var r=e.prototype;r.bootstrapModuleFactory=function e(s,r){var n=this;var a="noop"===(t=r?r.ngZone:void 0)?new xi:("zone.js"===t?void 0:t)||new ci({enableLongStackTrace:ts()}),i=[{provide:ci,useValue:a}];var t;return a.run(function(){var e=Js.create({providers:i,parent:n.injector,name:s.moduleType.name}),r=s.create(e),t=r.injector.get(ns,null);if(!t)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Ya&&Ja(r.injector.get($a,Ka)||Ka),r.onDestroy(function(){return Pi(n._modules,r)}),a.runOutsideAngular(function(){return a.onError.subscribe({next:function e(s){t.handleError(s)}})}),function(e,s,r){try{var n=r();return sr(n)?n.catch(function(r){throw s.runOutsideAngular(function(){return e.handleError(r)}),r}):n}catch(a){throw s.runOutsideAngular(function(){return e.handleError(a)}),a}}(t,a,function(){var e=r.injector.get(ja);return e.runInitializers(),e.donePromise.then(function(){return n._moduleDoBootstrap(r),r})})})};r.bootstrapModule=function e(s,r){var n=this;if(r===void 0){r=[]}var a=Bi({},r);return yi(this.injector,a,s).then(function(e){return n.bootstrapModuleFactory(e,a)})};r._moduleDoBootstrap=function e(s){var r=s.injector.get(Ui);if(s._bootstrapComponents.length>0)s._bootstrapComponents.forEach(function(e){return r.bootstrap(e)});else{if(!s.instance.ngDoBootstrap)throw new Error("The module "+xe(s.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. '+"Please define one of these.");s.instance.ngDoBootstrap(r)}this._modules.push(s)};r.onDestroy=function e(s){this._destroyListeners.push(s)};r.destroy=function e(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0};s(e,[{key:"injector",get:function e(){return this._injector}},{key:"destroyed",get:function e(){return this._destroyed}}]);return e}();function Bi(e,s){return Array.isArray(s)?s.reduce(Bi,e):Object.assign({},e,s)}var Ui=function(){var e=function(){function e(e,s,r,n,a,i){var t=this;this._zone=e,this._console=s,this._injector=r,this._exceptionHandler=n,this._componentFactoryResolver=a,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ts(),this._zone.onMicrotaskEmpty.subscribe({next:function e(){t._zone.run(function(){t.tick()})}});var o=new y(function(e){t._stable=t._zone.isStable&&!t._zone.hasPendingMacrotasks&&!t._zone.hasPendingMicrotasks,t._zone.runOutsideAngular(function(){e.next(t._stable),e.complete()})}),l=new y(function(e){var s;t._zone.runOutsideAngular(function(){s=t._zone.onStable.subscribe(function(){ci.assertNotInAngularZone(),pi(function(){t._stable||t._zone.hasPendingMacrotasks||t._zone.hasPendingMicrotasks||(t._stable=!0,e.next(!0))})})});var r=t._zone.onUnstable.subscribe(function(){ci.assertInAngularZone(),t._stable&&(t._stable=!1,t._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){s.unsubscribe(),r.unsubscribe()}});this.isStable=se(o,l.pipe(function(e){return re()(function(e,s){return function(s){var r;r="function"==typeof e?e:function(){return e};var n=Object.create(s,te);return n.source=s,n.subjectFactory=r,n}}(le)(e))}))}var r=e.prototype;r.bootstrap=function e(s,r){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var a;a=s instanceof ir?s:this._componentFactoryResolver.resolveComponentFactory(s),this.componentTypes.push(a.componentType);var i=bi(a)?null:this._injector.get(Ge),t=a.create(Js.NULL,[],r||a.selector,i);t.onDestroy(function(){n._unloadComponent(t)});var o=t.injector.get(Ei,null);return o&&t.injector.get(fi).registerApplication(t.location.nativeElement,o),this._loadComponent(t),ts()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),t};r.tick=function s(){var r=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;for(var a=this._views,i=Array.isArray(a),t=0,a=i?a:a[Symbol.iterator]();;){var o;if(i){if(t>=a.length)break;o=a[t++]}else{t=a.next();if(t.done)break;o=t.value}var l=o;l.detectChanges()}if(this._enforceNoNewChanges){for(var _=this._views,w=Array.isArray(_),g=0,_=w?_:_[Symbol.iterator]();;){var m;if(w){if(g>=_.length)break;m=_[g++]}else{g=_.next();if(g.done)break;m=g.value}var p=m;p.checkNoChanges()}}}catch(c){this._zone.runOutsideAngular(function(){return r._exceptionHandler.handleError(c)})}finally{this._runningTick=!1,gi(n)}};r.attachView=function e(s){var r=s;this._views.push(r),r.attachToAppRef(this)};r.detachView=function e(s){var r=s;Pi(this._views,r),r.detachFromAppRef()};r._loadComponent=function e(s){this.attachView(s.hostView),this.tick(),this.components.push(s),this._injector.get(Qa,[]).concat(this._bootstrapListeners).forEach(function(e){return e(s)})};r._unloadComponent=function e(s){this.detachView(s.hostView),Pi(this.components,s)};r.ngOnDestroy=function e(){this._views.slice().forEach(function(e){return e.destroy()})};s(e,[{key:"viewCount",get:function e(){return this._views.length}}]);return e}();return e._tickScope=wi("ApplicationRef#tick()"),e}();function Pi(e,s){var r=e.indexOf(s);r>-1&&e.splice(r,1)}var Ki=function e(){};var Ii="#",Ji="NgFactory";var Mi=function e(){};var Oi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};var Ri=function(){function e(e,s){this._compiler=e,this._config=s||Oi}var s=e.prototype;s.load=function e(s){return!Ya&&this._compiler instanceof ai?this.loadFactory(s):this.loadAndCompile(s)};s.loadAndCompile=function e(s){var r=this;var n=s.split(Ii),a=n[0],i=n[1];return void 0===i&&(i="default"),o("zn8P")(a).then(function(e){return e[i]}).then(function(e){return Li(e,a,i)}).then(function(e){return r._compiler.compileModuleAsync(e)})};s.loadFactory=function e(s){var r=s.split(Ii),n=r[0],a=r[1],i=Ji;return void 0===a&&(a="default",i=""),o("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[a+i]}).then(function(e){return Li(e,n,a)})};return e}();function Li(e,s,r){if(!e)throw new Error("Cannot find '"+r+"' in '"+s+"'");return e}var ji=function e(s,r){this.name=s,this.callback=r};var Vi=function(){function e(e,s,r){this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=e,s&&s instanceof Gi&&s.addChild(this)}s(e,[{key:"injector",get:function e(){return this._debugContext.injector}},{key:"componentInstance",get:function e(){return this._debugContext.component}},{key:"context",get:function e(){return this._debugContext.context}},{key:"references",get:function e(){return this._debugContext.references}},{key:"providerTokens",get:function e(){return this._debugContext.providerTokens}}]);return e}();var Gi=function(e){t(r,e);function r(s,r,n){var a;a=e.call(this,s,r,n)||this,a.properties={},a.attributes={},a.classes={},a.styles={},a.childNodes=[],a.nativeElement=s;return a}var n=r.prototype;n.addChild=function e(s){s&&(this.childNodes.push(s),s.parent=this)};n.removeChild=function e(s){var r=this.childNodes.indexOf(s);-1!==r&&(s.parent=null,this.childNodes.splice(r,1))};n.insertChildrenAfter=function e(s,r){var n,a=this;var i=this.childNodes.indexOf(s);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(r)),r.forEach(function(e){e.parent&&e.parent.removeChild(e),s.parent=a}))};n.insertBefore=function e(s,r){var n=this.childNodes.indexOf(s);-1===n?this.addChild(r):(r.parent&&r.parent.removeChild(r),r.parent=this,this.childNodes.splice(n,0,r))};n.query=function e(s){return this.queryAll(s)[0]||null};n.queryAll=function e(s){var n=[];return function e(s,n,a){s.childNodes.forEach(function(s){s instanceof r&&(n(s)&&a.push(s),e(s,n,a))})}(this,s,n),n};n.queryAllNodes=function e(s){var n=[];return function e(s,n,a){s instanceof r&&s.childNodes.forEach(function(s){n(s)&&a.push(s),s instanceof r&&e(s,n,a)})}(this,s,n),n};n.triggerEventHandler=function e(s,r){this.listeners.forEach(function(e){e.name==s&&e.callback(r)})};s(r,[{key:"children",get:function e(){return this.childNodes.filter(function(e){return e instanceof r})}}]);return r}(Vi);var Hi=new Map,zi=function e(s){return Hi.get(s)||null};function Wi(e){Hi.set(e.nativeNode,e)}var Qi=Ti(null,"core",[{provide:Wa,useValue:"unknown"},{provide:Di,deps:[Js]},{provide:fi,deps:[]},{provide:Za,deps:[]}]);function Zi(){return Pr}function $i(){return Kr}function Yi(e){return e?(Ya&&Ja(e),e):Ka}function Xi(e){var s=[];return e.onStable.subscribe(function(){for(;s.length;){s.pop()()}}),function(e){s.push(e)}}var et=function e(s){};function st(e,s,r,n,a,i){e|=1;var t=kn(s),o=t.matchedQueries,l=t.references,_=t.matchedQueryIds;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:_,references:l,ngContentIndex:r,childCount:n,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?qn(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:a||Yr},provider:null,text:null,query:null,ngContent:null}}function rt(e,s,r,n,a,i,t,o,l,_,w,g){var m;if(t===void 0){t=[]}_||(_=Yr);var p=kn(r),c=p.matchedQueries,d=p.references,u=p.matchedQueryIds;var v=null,N=null;i&&(m=Tn(i),v=m[0],N=m[1],m),o=o||[];var k=new Array(o.length);for(var x=0;x0)_=d,Et(d)||(w=d);else for(;_&&c===_.nodeIndex+_.childCount;){var N=_.parent;N&&(N.childFlags|=_.childFlags,N.childMatchedQueries|=_.childMatchedQueries),w=(_=N)&&Et(_)?_.renderParent:_}}return{factory:null,nodeFlags:t,rootNodeFlags:o,nodeMatchedQueries:l,flags:e,nodes:s,updateDirectives:r||Yr,updateRenderer:n||Yr,handleEvent:function e(r,n,a,i){return s[n].element.handleEvent(r,a,i)},bindingCount:a,outputCount:i,lastRenderRootNode:p}}function Et(e){return 0!=(1&e.flags)&&null===e.element.name}function ft(e,s,r){var n=s.element&&s.element.template;if(n){if(!n.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(n.lastRenderRootNode&&16777216&n.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+s.nodeIndex+"!")}if(20224&s.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+s.nodeIndex+"!");if(s.query){if(67108864&s.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+s.nodeIndex+"!");if(134217728&s.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+s.nodeIndex+"!")}if(s.childCount){var a=e?e.nodeIndex+e.childCount:r-1;if(s.nodeIndex<=a&&s.nodeIndex+s.childCount>a)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+s.nodeIndex+"!")}}function qt(e,s,r,n){var a=yt(e.root,e.renderer,e,s,r);return bt(a,e.component,n),St(a),a}function ht(e,s,r){var n=yt(e,e.renderer,null,null,s);return bt(n,r,r),St(n),n}function Ft(e,s,r,n){var a=s.element.componentRendererType;var i;return i=a?e.root.rendererFactory.createRenderer(n,a):e.root.renderer,yt(e.root,i,e,s.element.componentProvider,r)}function yt(e,s,r,n,a){var i=new Array(a.nodes.length),t=a.outputCount?new Array(a.outputCount):null;return{def:a,parent:r,viewContainerParent:null,parentNodeDef:n,context:null,component:null,nodes:i,state:13,root:e,renderer:s,oldValues:new Array(a.bindingCount),disposables:t,initIndex:-1}}function bt(e,s,r){e.component=s,e.context=r}function St(e){var s;un(e)&&(s=zr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);var r=e.def,n=e.nodes;for(var a=0;a0&&tt(e,s,0,r)&&(p=!0),m>1&&tt(e,s,1,n)&&(p=!0),m>2&&tt(e,s,2,a)&&(p=!0),m>3&&tt(e,s,3,i)&&(p=!0),m>4&&tt(e,s,4,t)&&(p=!0),m>5&&tt(e,s,5,o)&&(p=!0),m>6&&tt(e,s,6,l)&&(p=!0),m>7&&tt(e,s,7,_)&&(p=!0),m>8&&tt(e,s,8,w)&&(p=!0),m>9&&tt(e,s,9,g)&&(p=!0),p}(e,s,r,n,a,i,t,o,l,_,w,g);case 2:return function(e,s,r,n,a,i,t,o,l,_,w,g){var m=!1;var p=s.bindings,c=p.length;if(c>0&&ln(e,s,0,r)&&(m=!0),c>1&&ln(e,s,1,n)&&(m=!0),c>2&&ln(e,s,2,a)&&(m=!0),c>3&&ln(e,s,3,i)&&(m=!0),c>4&&ln(e,s,4,t)&&(m=!0),c>5&&ln(e,s,5,o)&&(m=!0),c>6&&ln(e,s,6,l)&&(m=!0),c>7&&ln(e,s,7,_)&&(m=!0),c>8&&ln(e,s,8,w)&&(m=!0),c>9&&ln(e,s,9,g)&&(m=!0),m){var d=s.text.prefix;c>0&&(d+=kt(r,p[0])),c>1&&(d+=kt(n,p[1])),c>2&&(d+=kt(a,p[2])),c>3&&(d+=kt(i,p[3])),c>4&&(d+=kt(t,p[4])),c>5&&(d+=kt(o,p[5])),c>6&&(d+=kt(l,p[6])),c>7&&(d+=kt(_,p[7])),c>8&&(d+=kt(w,p[8])),c>9&&(d+=kt(g,p[9]));var u=Hr(e,s.nodeIndex).renderText;e.renderer.setValue(u,d)}return m}(e,s,r,n,a,i,t,o,l,_,w,g);case 16384:return function(e,s,r,n,a,i,t,o,l,_,w,g){var m=Wr(e,s.nodeIndex),p=m.instance;var c=!1,d=void 0;var u=s.bindings.length;return u>0&&on(e,s,0,r)&&(c=!0,d=ya(e,m,s,0,r,d)),u>1&&on(e,s,1,n)&&(c=!0,d=ya(e,m,s,1,n,d)),u>2&&on(e,s,2,a)&&(c=!0,d=ya(e,m,s,2,a,d)),u>3&&on(e,s,3,i)&&(c=!0,d=ya(e,m,s,3,i,d)),u>4&&on(e,s,4,t)&&(c=!0,d=ya(e,m,s,4,t,d)),u>5&&on(e,s,5,o)&&(c=!0,d=ya(e,m,s,5,o,d)),u>6&&on(e,s,6,l)&&(c=!0,d=ya(e,m,s,6,l,d)),u>7&&on(e,s,7,_)&&(c=!0,d=ya(e,m,s,7,_,d)),u>8&&on(e,s,8,w)&&(c=!0,d=ya(e,m,s,8,w,d)),u>9&&on(e,s,9,g)&&(c=!0,d=ya(e,m,s,9,g,d)),d&&p.ngOnChanges(d),65536&s.flags&&Gr(e,256,s.nodeIndex)&&p.ngOnInit(),262144&s.flags&&p.ngDoCheck(),c}(e,s,r,n,a,i,t,o,l,_,w,g);case 32:case 64:case 128:return function(e,s,r,n,a,i,t,o,l,_,w,g){var m=s.bindings;var p=!1;var c=m.length;if(c>0&&ln(e,s,0,r)&&(p=!0),c>1&&ln(e,s,1,n)&&(p=!0),c>2&&ln(e,s,2,a)&&(p=!0),c>3&&ln(e,s,3,i)&&(p=!0),c>4&&ln(e,s,4,t)&&(p=!0),c>5&&ln(e,s,5,o)&&(p=!0),c>6&&ln(e,s,6,l)&&(p=!0),c>7&&ln(e,s,7,_)&&(p=!0),c>8&&ln(e,s,8,w)&&(p=!0),c>9&&ln(e,s,9,g)&&(p=!0),p){var d=Qr(e,s.nodeIndex);var u;switch(201347067&s.flags){case 32:u=new Array(m.length),c>0&&(u[0]=r),c>1&&(u[1]=n),c>2&&(u[2]=a),c>3&&(u[3]=i),c>4&&(u[4]=t),c>5&&(u[5]=o),c>6&&(u[6]=l),c>7&&(u[7]=_),c>8&&(u[8]=w),c>9&&(u[9]=g);break;case 64:u={},c>0&&(u[m[0].name]=r),c>1&&(u[m[1].name]=n),c>2&&(u[m[2].name]=a),c>3&&(u[m[3].name]=i),c>4&&(u[m[4].name]=t),c>5&&(u[m[5].name]=o),c>6&&(u[m[6].name]=l),c>7&&(u[m[7].name]=_),c>8&&(u[m[8].name]=w),c>9&&(u[m[9].name]=g);break;case 128:var v=r;switch(c){case 1:u=v.transform(r);break;case 2:u=v.transform(n);break;case 3:u=v.transform(n,a);break;case 4:u=v.transform(n,a,i);break;case 5:u=v.transform(n,a,i,t);break;case 6:u=v.transform(n,a,i,t,o);break;case 7:u=v.transform(n,a,i,t,o,l);break;case 8:u=v.transform(n,a,i,t,o,l,_);break;case 9:u=v.transform(n,a,i,t,o,l,_,w);break;case 10:u=v.transform(n,a,i,t,o,l,_,w,g)}}d.value=u}return p}(e,s,r,n,a,i,t,o,l,_,w,g);default:throw"unreachable"}}(e,s,n,a,i,t,o,l,_,w,g,m):function(e,s,r){switch(201347067&s.flags){case 1:return function(e,s,r){var n=!1;for(var a=0;a0&&_n(e,s,0,r),m>1&&_n(e,s,1,n),m>2&&_n(e,s,2,a),m>3&&_n(e,s,3,i),m>4&&_n(e,s,4,t),m>5&&_n(e,s,5,o),m>6&&_n(e,s,6,l),m>7&&_n(e,s,7,_),m>8&&_n(e,s,8,w),m>9&&_n(e,s,9,g)}(e,s,n,a,i,t,o,l,_,w,g,m):function(e,s,r){for(var n=0;n0){var i=new Set(e.modules);Zt.forEach(function(s,r){if(i.has(Ne(r).providedIn)){var a={token:r,flags:s.flags|(n?4096:0),deps:xn(s.deps),value:s.value,index:e.providers.length};e.providers.push(a),e.providersByKey[en(r)]=a}})}}(e=e.factory(function(){return Yr})),e):e}(n))}var Qt=new Map,Zt=new Map,$t=new Map;function Yt(e){var s;Qt.set(e.token,e),"function"==typeof e.token&&(s=Ne(e.token))&&"function"==typeof s.providedIn&&Zt.set(e.token,e)}function Xt(e,s){var r=qn(s.viewDefFactory),n=qn(r.nodes[0].element.componentView);$t.set(e,n)}function eo(){Qt.clear(),Zt.clear(),$t.clear()}function so(e){if(0===Qt.size)return e;var s=function(e){var s=[];var r=null;for(var n=0;n3?i-3:0),o=3;o3?i-3:0),o=3;o0?e.substring(1):e};r.prepareExternalUrl=function e(s){var r=Uo.joinWithSlash(this._baseHref,s);return r.length>0?"#"+r:r};r.pushState=function e(s,r,n,a){var i=this.prepareExternalUrl(n+Uo.normalizeQueryParams(a));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(s,r,i)};r.replaceState=function e(s,r,n,a){var i=this.prepareExternalUrl(n+Uo.normalizeQueryParams(a));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(s,r,i)};r.forward=function e(){this._platformLocation.forward()};r.back=function e(){this._platformLocation.back()};return s}(Do);var Io=function(e){t(s,e);function s(s,r){var n;if(n=e.call(this)||this,n._platformLocation=s,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");n._baseHref=r;return i(n)}var r=s.prototype;r.onPopState=function e(s){this._platformLocation.onPopState(s),this._platformLocation.onHashChange(s)};r.getBaseHref=function e(){return this._baseHref};r.prepareExternalUrl=function e(s){return Uo.joinWithSlash(this._baseHref,s)};r.path=function e(s){if(s===void 0){s=!1}var r=this._platformLocation.pathname+Uo.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&s?""+r+n:r};r.pushState=function e(s,r,n,a){var i=this.prepareExternalUrl(n+Uo.normalizeQueryParams(a));this._platformLocation.pushState(s,r,i)};r.replaceState=function e(s,r,n,a){var i=this.prepareExternalUrl(n+Uo.normalizeQueryParams(a));this._platformLocation.replaceState(s,r,i)};r.forward=function e(){this._platformLocation.forward()};r.back=function e(){this._platformLocation.back()};return s}(Do);var Jo=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),Mo=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Oo=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Ro=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Lo=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),jo=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Vo(e,s){return Zo(Pa(e)[Da.DateFormat],s)}function Go(e,s){return Zo(Pa(e)[Da.TimeFormat],s)}function Ho(e,s){return Zo(Pa(e)[Da.DateTimeFormat],s)}function zo(e,s){var r=Pa(e),n=r[Da.NumberSymbols][s];if(void 0===n){if(s===jo.CurrencyDecimal)return r[Da.NumberSymbols][jo.Decimal];if(s===jo.CurrencyGroup)return r[Da.NumberSymbols][jo.Group]}return n}var Wo=function e(s){return Pa(s)[Da.PluralCase]};function Qo(e){if(!e[Da.ExtraData])throw new Error('Missing extra locale data for the locale "'+e[Da.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Zo(e,s){for(var r=s;r>-1;r--){if(void 0!==e[r])return e[r]}throw new Error("Locale data API: locale data undefined")}function $o(e){var s=e.split(":"),r=s[0],n=s[1];return{hours:+r,minutes:+n}}var Yo=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xo={},el=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,sl=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),rl=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),nl=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function al(e,s){return s&&(e=e.replace(/\{([^}]+)}/g,function(e,r){return null!=s&&r in s?s[r]:e})),e}function il(e,s,r,n,a){if(r===void 0){r="-"}var i="";(e<0||a&&e<=0)&&(a?e=1-e:(e=-e,i=r));var t=String(e);for(;t.length0||o>-r)&&(o+=r),e===rl.Hours)0===o&&-12===r&&(o=12);else if(e===rl.FractionalSeconds)return l=s,il(o,3).substr(0,l);var l;var _=zo(t,jo.MinusSign);return il(o,s,_,n,a)}}function ol(e,s,r,n){if(r===void 0){r=Oo.Format}if(n===void 0){n=!1}return function(a,i){return function(e,s,r,n,a,i){switch(r){case nl.Months:return function(e,s,r){var n=Pa(e),a=Zo([n[Da.MonthsFormat],n[Da.MonthsStandalone]],s);return Zo(a,r)}(s,a,n)[e.getMonth()];case nl.Days:return function(e,s,r){var n=Pa(e),a=Zo([n[Da.DaysFormat],n[Da.DaysStandalone]],s);return Zo(a,r)}(s,a,n)[e.getDay()];case nl.DayPeriods:var t=e.getHours(),o=e.getMinutes();if(i){var l=function(e){var s=Pa(e);return Qo(s),(s[Da.ExtraData][2]||[]).map(function(e){return"string"==typeof e?$o(e):[$o(e[0]),$o(e[1])]})}(s),_=function(e,s,r){var n=Pa(e);Qo(n);var a=Zo([n[Da.ExtraData][0],n[Da.ExtraData][1]],s)||[];return Zo(a,r)||[]}(s,a,n);var w;if(l.forEach(function(e,s){if(Array.isArray(e)){var r=e[0],n=r.hours,a=r.minutes,i=e[1],l=i.hours,g=i.minutes;t>=n&&o>=a&&(t0?Math.floor(a/60):Math.ceil(a/60);switch(e){case sl.Short:return(a>=0?"+":"")+il(t,2,i)+il(Math.abs(a%60),2,i);case sl.ShortGMT:return"GMT"+(a>=0?"+":"")+il(t,1,i);case sl.Long:return"GMT"+(a>=0?"+":"")+il(t,2,i)+":"+il(Math.abs(a%60),2,i);case sl.Extended:return 0===n?"Z":(a>=0?"+":"")+il(t,2,i)+":"+il(Math.abs(a%60),2,i);default:throw new Error('Unknown zone width "'+e+'"')}}}var _l=0,wl=4;function gl(e,s){if(s===void 0){s=!1}return function(r,n){var a;if(s){var i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,t=r.getDate();a=1+Math.floor((t+i)/7)}else{var o=function(e){var s=new Date(e,_l,1).getDay();return new Date(e,0,1+(s<=wl?wl:wl+7)-s)}(r.getFullYear()),l=(_=r,new Date(_.getFullYear(),_.getMonth(),_.getDate()+(wl-_.getDay()))).getTime()-o.getTime();a=1+Math.round(l/6048e5)}var _;return il(a,e,zo(n,jo.MinusSign))}}var ml={};function pl(e,s){e=e.replace(/:/g,"");var r=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(r)?s:r}function cl(e){return e instanceof Date&&!isNaN(e.valueOf())}var dl=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ul=22,vl=".",Nl="0",kl=";",xl=",",El="#";function fl(e){var s=parseInt(e);if(isNaN(s))throw new Error("Invalid integer literal when parsing "+e);return s}var ql=new Ce("UseV4Plurals");var hl=function e(){};var Fl=function(e){t(s,e);function s(s,r){var n;n=e.call(this)||this,n.locale=s,n.deprecatedPluralFn=r;return n}var r=s.prototype;r.getPluralCategory=function e(s,r){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(r||this.locale,s):Wo(r||this.locale)(s)){case Mo.Zero:return"zero";case Mo.One:return"one";case Mo.Two:return"two";case Mo.Few:return"few";case Mo.Many:return"many";default:return"other"}};return s}(hl);function yl(e,s){s=encodeURIComponent(s);for(var r=e.split(";"),n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{a=r.next();if(a.done)break;i=a.value}var t=i;var o=t.indexOf("="),l=-1==o?[t,""]:[t.slice(0,o),t.slice(o+1)],_=l[0],w=l[1];if(_.trim()===s)return decodeURIComponent(w)}return null}var bl=function(){function e(e,s,r,n){this.$implicit=e,this.ngForOf=s,this.index=r,this.count=n}s(e,[{key:"first",get:function e(){return 0===this.index}},{key:"last",get:function e(){return this.index===this.count-1}},{key:"even",get:function e(){return this.index%2==0}},{key:"odd",get:function e(){return!this.even}}]);return e}();var Sl=function(){function e(e,s,r){this._viewContainer=e,this._template=s,this._differs=r,this._ngForOfDirty=!0,this._differ=null}var r=e.prototype;r.ngDoCheck=function e(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var s=this._ngForOf;if(!this._differ&&s)try{this._differ=this._differs.find(s).create(this.ngForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '"+s+"' of type '"+(r=s,r.name||typeof r)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var r;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}};r._applyChanges=function e(s){var r=this;var n=[];s.forEachOperation(function(e,s,a){if(null==e.previousIndex){var i=r._viewContainer.createEmbeddedView(r._template,new bl(null,r._ngForOf,-1,-1),null===a?void 0:a),t=new Cl(e,i);n.push(t)}else if(null==a)r._viewContainer.remove(null===s?void 0:s);else if(null!==s){var o=r._viewContainer.get(s);r._viewContainer.move(o,a);var l=new Cl(e,o);n.push(l)}});for(var a=0;a-1&&(o=o.replace(vl,"")),(a=o.search(/e/i))>0?(n<0&&(n=a),n+=+o.slice(a+1),o=o.substring(0,a)):n<0&&(n=o.length),a=0;o.charAt(a)===Nl;a++){}if(a===(t=o.length))r=[0],n=1;else{for(t--;o.charAt(t)===Nl;){t--}for(n-=a,r=[],i=0;a<=t;a++,i++){r[i]=Number(o.charAt(a))}}return n>ul&&(r=r.splice(0,ul-1),l=n-1,n=1),{digits:r,exponent:l,integerLen:n}}();t&&(_=function(e){if(0===e.digits[0])return e;var s=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===s?e.digits.push(0,0):1===s&&e.digits.push(0),e.integerLen+=2),e}(_));var w=s.minInt,g=s.minFrac,m=s.maxFrac;if(i){var p=i.match(dl);if(null===p)throw new Error(i+" is not a valid digit info");var c=p[1],d=p[3],u=p[5];null!=c&&(w=fl(c)),null!=d&&(g=fl(d)),null!=u?m=fl(u):null!=d&&g>m&&(m=g)}!function(e,s,r){if(s>r)throw new Error("The minimum number of digits after fraction ("+s+") is higher than the maximum ("+r+").");var n=e.digits,a=n.length-e.integerLen;var i=Math.min(Math.max(s,a),r);var t=i+e.integerLen,o=n[t];if(t>0){n.splice(Math.max(e.integerLen,t));for(var l=t;l=5)if(t-1<0){for(var w=0;w>t;w--){n.unshift(0),e.integerLen++}n.unshift(1),e.integerLen++}else n[t-1]++;for(;a=m?n.pop():g=!1),s>=10?1:0},0);p&&(n.unshift(p),e.integerLen++)}(_,g,m);var v=_.digits,N=_.integerLen;var k=_.exponent;var x=[];for(l=v.every(function(e){return!e});N0?x=v.splice(N,v.length):(x=v,v=[0]);var E=[];for(v.length>=s.lgSize&&E.unshift(v.splice(-s.lgSize,v.length).join(""));v.length>s.gSize;){E.unshift(v.splice(-s.gSize,v.length).join(""))}v.length&&E.unshift(v.join("")),o=E.join(zo(r,n)),x.length&&(o+=zo(r,a)+x.join("")),k&&(o+=zo(r,jo.Exponential)+"+"+k)}else o=zo(r,jo.Infinity);return e<0&&!l?s.negPre+o+s.negSuf:s.posPre+o+s.posSuf}(e,function(e,s){if(s===void 0){s="-"}var r={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(kl),a=n[0],i=n[1],t=-1!==a.indexOf(vl)?a.split(vl):[a.substring(0,a.lastIndexOf(Nl)+1),a.substring(a.lastIndexOf(Nl)+1)],o=t[0],l=t[1]||"";r.posPre=o.substr(0,o.indexOf(El));for(var _=0;_0){var n=this.count>=this.total?this.total:this.count,a=this.ring;for(var i=0;i=2;return function(n){return n.pipe(e?r_(function(s,r){return e(s,r,n)}):Y,o_(1),r?p_(s):w_(function(){return new Wl}))}}function v_(e){return function(s){var r=new N_(e),n=s.lift(r);return r.caught=n}}var N_=function(){function e(e){this.selector=e}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new k_(s,this.selector,this.caught))};return e}();var k_=function(e){t(s,e);function s(s,r,n){var a;a=e.call(this,s)||this,a.selector=r,a.caught=n;return a}var r=s.prototype;r.error=function s(r){if(!this.isStopped){var n;try{n=this.selector(r,this.caught)}catch(i){return void e.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var a=new P(this,void 0,void 0);this.add(a),L(this,n,void 0,void 0,a)}};return s}(j);function x_(e){return function(s){return 0===e?Xl():s.lift(new E_(e))}}var E_=function(){function e(e){if(this.total=e,this.total<0)throw new t_}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new f_(s,this.total))};return e}();var f_=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.total=r,n.count=0;return n}var r=s.prototype;r._next=function e(s){var r=this.total,n=++this.count;n<=r&&(this.destination.next(s),n===r&&(this.destination.complete(),this.unsubscribe()))};return s}(x);function q_(e,s){var r=arguments.length>=2;return function(n){return n.pipe(e?r_(function(s,r){return e(s,r,n)}):Y,x_(1),r?p_(s):w_(function(){return new Wl}))}}var h_=function(){function e(e,s,r){this.predicate=e,this.thisArg=s,this.source=r}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new F_(s,this.predicate,this.thisArg,this.source))};return e}();var F_=function(e){t(s,e);function s(s,r,n,a){var t;t=e.call(this,s)||this,t.predicate=r,t.thisArg=n,t.source=a,t.index=0,t.thisArg=n||i(t);return t}var r=s.prototype;r.notifyComplete=function e(s){this.destination.next(s),this.destination.complete()};r._next=function e(s){var r=!1;try{r=this.predicate.call(this.thisArg,s,this.index++,this.source)}catch(n){return void this.destination.error(n)}r||this.notifyComplete(!1)};r._complete=function e(){this.notifyComplete(!0)};return s}(x);function y_(e,s){return"function"==typeof s?function(r){return r.pipe(y_(function(r,n){return W(e(r,n)).pipe(V(function(e,a){return s(r,e,n,a)}))}))}:function(s){return s.lift(new b_(e))}}var b_=function(){function e(e){this.project=e}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new S_(s,this.project))};return e}();var S_=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.project=r,n.index=0;return n}var r=s.prototype;r._next=function e(s){var r;var n=this.index++;try{r=this.project(s,n)}catch(a){return void this.destination.error(a)}this._innerSub(r,s,n)};r._innerSub=function e(s,r,n){var a=this.innerSubscription;a&&a.unsubscribe();var i=new P(this,void 0,void 0);this.destination.add(i),this.innerSubscription=L(this,s,r,n,i)};r._complete=function s(){var r=this.innerSubscription;r&&!r.closed||e.prototype._complete.call(this),this.unsubscribe()};r._unsubscribe=function e(){this.innerSubscription=null};r.notifyComplete=function s(r){this.destination.remove(r),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)};r.notifyNext=function e(s,r,n,a,i){this.destination.next(r)};return s}(j);function C_(){return s_()(Gl.apply(void 0,arguments))}function T_(){for(var e=arguments.length,s=new Array(e),r=0;r=2&&(r=!0),function(n){return n.lift(new D_(e,s,r))}}var D_=function(){function e(e,s,r){if(r===void 0){r=!1}this.accumulator=e,this.seed=s,this.hasSeed=r}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new B_(s,this.accumulator,this.seed,this.hasSeed))};return e}();var B_=function(e){t(r,e);function r(s,r,n,a){var i;i=e.call(this,s)||this,i.accumulator=r,i._seed=n,i.hasSeed=a,i.index=0;return i}var n=r.prototype;n._next=function e(s){if(this.hasSeed)return this._tryNext(s);this.seed=s,this.destination.next(s)};n._tryNext=function e(s){var r=this.index++;var n;try{n=this.accumulator(this.seed,s,r)}catch(a){this.destination.error(a)}this.seed=n,this.destination.next(n)};s(r,[{key:"seed",get:function e(){return this._seed},set:function e(s){this.hasSeed=!0,this._seed=s}}]);return r}(x);function U_(e,s){return Q(e,s,1)}function P_(e,s,r){return function(n){return n.lift(new K_(e,s,r))}}var K_=function(){function e(e,s,r){this.nextOrObserver=e,this.error=s,this.complete=r}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new I_(s,this.nextOrObserver,this.error,this.complete))};return e}();var I_=function(e){t(s,e);function s(s,r,n,a){var t;t=e.call(this,s)||this,t._tapNext=q,t._tapError=q,t._tapComplete=q,t._tapError=n||q,t._tapComplete=a||q,l(r)?(t._context=i(t),t._tapNext=r):r&&(t._context=r,t._tapNext=r.next||q,t._tapError=r.error||q,t._tapComplete=r.complete||q);return t}var r=s.prototype;r._next=function e(s){try{this._tapNext.call(this._context,s)}catch(r){return void this.destination.error(r)}this.destination.next(s)};r._error=function e(s){try{this._tapError.call(this._context,s)}catch(s){return void this.destination.error(s)}this.destination.error(s)};r._complete=function e(){try{this._tapComplete.call(this._context)}catch(s){return void this.destination.error(s)}return this.destination.complete()};return s}(x);var J_=function(){function e(e){this.callback=e}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new M_(s,this.callback))};return e}();var M_=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.add(new v(r));return n}return s}(x);var O_=null;function R_(){return O_}var L_=function(){function e(){this.resourceLoaderType=null}s(e,[{key:"attrToPropMap",get:function e(){return this._attrToPropMap},set:function e(s){this._attrToPropMap=s}}]);return e}();var j_=function(e){t(s,e);function s(){var s;s=e.call(this)||this,s._animationPrefix=null,s._transitionEnd=null;try{var r=s.createElement("div",document);if(null!=s.getStyle(r,"animationName"))s._animationPrefix="";else{var n=["Webkit","Moz","O","ms"];for(var a=0;a0};n.tagName=function e(s){return s.tagName};n.attributeMap=function e(s){var r=new Map,n=s.attributes;for(var a=0;a0;o||(o=s[t]=[]);var _=Bw(r)?Zone.root:Zone.current;if(0===o.length)o.push({zone:_,handler:i});else{var w=!1;for(var g=0;g-1};return s}(ow);var Rw=["alt","control","meta","shift"],Lw={alt:function e(s){return s.altKey},control:function e(s){return s.ctrlKey},meta:function e(s){return s.metaKey},shift:function e(s){return s.shiftKey}};var jw=function(e){t(s,e);function s(s){return e.call(this,s)||this}var r=s.prototype;r.supports=function e(r){return null!=s.parseEventName(r)};r.addEventListener=function e(r,n,a){var i=s.parseEventName(n),t=s.eventCallback(i.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return R_().onAndCancel(r,i.domEventName,t)})};s.parseEventName=function e(r){var n=r.toLowerCase().split("."),a=n.shift();if(0===n.length||"keydown"!==a&&"keyup"!==a)return null;var i=s._normalizeKey(n.pop());var t="";if(Rw.forEach(function(e){var s=n.indexOf(e);s>-1&&(n.splice(s,1),t+=e+".")}),t+=i,0!=n.length||0===i.length)return null;var o={};return o.domEventName=a,o.fullKey=t,o};s.getEventFullKey=function e(s){var r="",n=R_().getEventKey(s);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rw.forEach(function(e){e!=n&&(0,Lw[e])(s)&&(r+=e+".")}),r+=n};s.eventCallback=function e(r,n,a){return function(e){s.getEventFullKey(e)===r&&a.runGuarded(function(){return n(e)})}};s._normalizeKey=function e(s){switch(s){case"esc":return"escape";default:return s}};return s}(ow);var Vw=function e(){};var Gw=function(e){t(s,e);function s(s){var r;r=e.call(this)||this,r._doc=s;return r}var r=s.prototype;r.sanitize=function e(s,r){if(null==r)return null;switch(s){case Ss.NONE:return r;case Ss.HTML:return r instanceof zw?r.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(r,"HTML"),function(e,s){var r=null;try{ys=ys||new os(e);var n=s?String(s):"";r=ys.getInertBodyElement(n);var a=5,i=n;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,n=i,i=r.innerHTML,r=ys.getInertBodyElement(n)}while(n!==i);var t=new fs,o=t.sanitizeChildren(bs(r)||r);return ts()&&t.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),o}finally{if(r){var l=bs(r)||r;for(;l.firstChild;){l.removeChild(l.firstChild)}}}}(this._doc,String(r)));case Ss.STYLE:return r instanceof Ww?r.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(r,"Style"),function(e){if(!(e=String(e).trim()))return"";var s=e.match(As);return s&&ws(s[1])===s[1]||e.match(Ts)&&function(e){var s=!0,r=!0;for(var n=0;ne.length)return null;if("full"===r.pathMatch&&(s.hasChildren()||n.length0?e[e.length-1]:null}function Bg(e,s){for(var r in e){e.hasOwnProperty(r)&&s(e[r],r)}}function Ug(e){return rr(e)?e:sr(e)?W(Promise.resolve(e)):Gl(e)}function Pg(e,s,r){return r?function(e,s){return Tg(e,s)}(e.queryParams,s.queryParams)&&function e(s,r){if(!Mg(s.segments,r.segments))return!1;if(s.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children){if(!s.children[n])return!1;if(!e(s.children[n],r.children[n]))return!1}return!0}(e.root,s.root):function(e,s){return Object.keys(s).length<=Object.keys(e).length&&Object.keys(s).every(function(r){return s[r]===e[r]})}(e.queryParams,s.queryParams)&&function e(s,r){return function s(r,n,a){if(r.segments.length>a.length){return!!Mg(r.segments.slice(0,a.length),a)&&!n.hasChildren()}if(r.segments.length===a.length){if(!Mg(r.segments,a))return!1;for(var i in n.children){if(!r.children[i])return!1;if(!e(r.children[i],n.children[i]))return!1}return!0}{var t=a.slice(0,r.segments.length),o=a.slice(r.segments.length);return!!Mg(r.segments,t)&&!!r.children[kg]&&s(r.children[kg],n,o)}}(s,r,r.segments)}(e.root,s.root)}var Kg=function(){function e(e,s,r){this.root=e,this.queryParams=s,this.fragment=r}var r=e.prototype;r.toString=function e(){return jg.serialize(this)};s(e,[{key:"queryParamMap",get:function e(){return this._queryParamMap||(this._queryParamMap=Eg(this.queryParams)),this._queryParamMap}}]);return e}();var Ig=function(){function e(e,s){var r=this;this.segments=e,this.children=s,this.parent=null,Bg(s,function(e,s){return e.parent=r})}var r=e.prototype;r.hasChildren=function e(){return this.numberOfChildren>0};r.toString=function e(){return Vg(this)};s(e,[{key:"numberOfChildren",get:function e(){return Object.keys(this.children).length}}]);return e}();var Jg=function(){function e(e,s){this.path=e,this.parameters=s}var r=e.prototype;r.toString=function e(){return Zg(this)};s(e,[{key:"parameterMap",get:function e(){return this._parameterMap||(this._parameterMap=Eg(this.parameters)),this._parameterMap}}]);return e}();function Mg(e,s){return e.length===s.length&&e.every(function(e,r){return e.path===s[r].path})}function Og(e,s){var r=[];return Bg(e.children,function(e,n){n===kg&&(r=r.concat(s(e,n)))}),Bg(e.children,function(e,n){n!==kg&&(r=r.concat(s(e,n)))}),r}var Rg=function e(){};var Lg=function(){function e(){}var s=e.prototype;s.parse=function e(s){var r=new sm(s);return new Kg(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())};s.serialize=function e(s){var r;return""+("/"+function e(s,r){if(!s.hasChildren())return Vg(s);if(r){var n=s.children[kg]?e(s.children[kg],!1):"",a=[];return Bg(s.children,function(s,r){r!==kg&&a.push(r+":"+e(s,!1))}),a.length>0?n+"("+a.join("//")+")":n}{var i=Og(s,function(r,n){return n===kg?[e(s.children[kg],!1)]:[n+":"+e(r,!1)]});return Vg(s)+"/("+i.join("//")+")"}}(s.root,!0))+function(e){var s=Object.keys(e).map(function(s){var r=e[s];return Array.isArray(r)?r.map(function(e){return Hg(s)+"="+Hg(e)}).join("&"):Hg(s)+"="+Hg(r)});return s.length?"?"+s.join("&"):""}(s.queryParams)+("string"==typeof s.fragment?"#"+(r=s.fragment,encodeURI(r)):"")};return e}();var jg=new Lg;function Vg(e){return e.segments.map(function(e){return Zg(e)}).join("/")}function Gg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hg(e){return Gg(e).replace(/%3B/gi,";")}function zg(e){return Gg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wg(e){return decodeURIComponent(e)}function Qg(e){return Wg(e.replace(/\+/g,"%20"))}function Zg(e){return""+zg(e.path)+(s=e.parameters,Object.keys(s).map(function(e){return";"+zg(e)+"="+zg(s[e])}).join(""));var s}var $g=/^[^\/()?;=#]+/;function Yg(e){var s=e.match($g);return s?s[0]:""}var Xg=/^[^=?&#]+/,em=/^[^?&#]+/;var sm=function(){function e(e){this.url=e,this.remaining=e}var s=e.prototype;s.parseRootSegment=function e(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ig([],{}):new Ig([],this.parseChildren())};s.parseQueryParams=function e(){var s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s};s.parseFragment=function e(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null};s.parseChildren=function e(){if(""===this.remaining)return{};this.consumeOptional("/");var s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");){this.capture("/"),s.push(this.parseSegment())}var r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(s.length>0||Object.keys(r).length>0)&&(n[kg]=new Ig(s,r)),n};s.parseSegment=function e(){var s=Yg(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(s),new Jg(Wg(s),this.parseMatrixParams())};s.parseMatrixParams=function e(){var s={};for(;this.consumeOptional(";");){this.parseParam(s)}return s};s.parseParam=function e(s){var r=Yg(this.remaining);if(!r)return;this.capture(r);var n="";if(this.consumeOptional("=")){var a=Yg(this.remaining);a&&this.capture(n=a)}s[Wg(r)]=Wg(n)};s.parseQueryParam=function e(s){var r=function(e){var s=e.match(Xg);return s?s[0]:""}(this.remaining);if(!r)return;this.capture(r);var n="";if(this.consumeOptional("=")){var a=function(e){var s=e.match(em);return s?s[0]:""}(this.remaining);a&&this.capture(n=a)}var i=Qg(r),t=Qg(n);if(s.hasOwnProperty(i)){var o=s[i];Array.isArray(o)||(s[i]=o=[o]),o.push(t)}else s[i]=t};s.parseParens=function e(s){var r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yg(this.remaining),a=this.remaining[n.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):s&&(i=kg);var t=this.parseChildren();r[i]=1===Object.keys(t).length?t[kg]:new Ig([],t),this.consumeOptional("//")}return r};s.peekStartsWith=function e(s){return this.remaining.startsWith(s)};s.consumeOptional=function e(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)};s.capture=function e(s){if(!this.consumeOptional(s))throw new Error('Expected "'+s+'".')};return e}();var rm=function(){function e(e){this._root=e}var r=e.prototype;r.parent=function e(s){var r=this.pathFromRoot(s);return r.length>1?r[r.length-2]:null};r.children=function e(s){var r=nm(s,this._root);return r?r.children.map(function(e){return e.value}):[]};r.firstChild=function e(s){var r=nm(s,this._root);return r&&r.children.length>0?r.children[0].value:null};r.siblings=function e(s){var r=am(s,this._root);return r.length<2?[]:r[r.length-2].children.map(function(e){return e.value}).filter(function(e){return e!==s})};r.pathFromRoot=function e(s){return am(s,this._root).map(function(e){return e.value})};s(e,[{key:"root",get:function e(){return this._root.value}}]);return e}();function nm(e,s){if(e===s.value)return s;for(var r=s.children,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{a=r.next();if(a.done)break;i=a.value}var t=i;var o=nm(e,t);if(o)return o}return null}function am(e,s){if(e===s.value)return[s];for(var r=s.children,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{a=r.next();if(a.done)break;i=a.value}var t=i;var o=am(e,t);if(o.length)return o.unshift(s),o}return[]}var im=function(){function e(e,s){this.value=e,this.children=s}var s=e.prototype;s.toString=function e(){return"TreeNode("+this.value+")"};return e}();function tm(e){var s={};return e&&e.children.forEach(function(e){return s[e.value.outlet]=e}),s}var om=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s)||this,n.snapshot=r,pm(i(n),s);return n}var r=s.prototype;r.toString=function e(){return this.snapshot.toString()};return s}(rm);function lm(e,s){var r=function(e,s){var r=new gm([],{},{},"",{},kg,s,null,e.root,-1,{});return new mm("",new im(r,[]))}(e,s),n=new Hl([new Jg("",{})]),a=new Hl({}),i=new Hl({}),t=new Hl({}),o=new Hl(""),l=new _m(n,a,t,o,i,kg,s,r.root);return l.snapshot=r.root,new om(new im(l,[]),r)}var _m=function(){function e(e,s,r,n,a,i,t,o){this.url=e,this.params=s,this.queryParams=r,this.fragment=n,this.data=a,this.outlet=i,this.component=t,this._futureSnapshot=o}var r=e.prototype;r.toString=function e(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};s(e,[{key:"routeConfig",get:function e(){return this._futureSnapshot.routeConfig}},{key:"root",get:function e(){return this._routerState.root}},{key:"parent",get:function e(){return this._routerState.parent(this)}},{key:"firstChild",get:function e(){return this._routerState.firstChild(this)}},{key:"children",get:function e(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function e(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function e(){return this._paramMap||(this._paramMap=this.params.pipe(V(function(e){return Eg(e)}))),this._paramMap}},{key:"queryParamMap",get:function e(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V(function(e){return Eg(e)}))),this._queryParamMap}}]);return e}();function wm(e,s){if(s===void 0){s="emptyOnly"}var r=e.pathFromRoot;var n=0;if("always"!==s)for(n=r.length-1;n>=1;){var a=r[n],i=r[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(i.component)break;n--}}return function(e){return e.reduce(function(e,s){return{params:Object.assign({},e.params,s.params),data:Object.assign({},e.data,s.data),resolve:Object.assign({},e.resolve,s._resolvedData)}},{params:{},data:{},resolve:{}})}(r.slice(n))}var gm=function(){function e(e,s,r,n,a,i,t,o,l,_,w){this.url=e,this.params=s,this.queryParams=r,this.fragment=n,this.data=a,this.outlet=i,this.component=t,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=_,this._resolve=w}var r=e.prototype;r.toString=function e(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};s(e,[{key:"root",get:function e(){return this._routerState.root}},{key:"parent",get:function e(){return this._routerState.parent(this)}},{key:"firstChild",get:function e(){return this._routerState.firstChild(this)}},{key:"children",get:function e(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function e(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function e(){return this._paramMap||(this._paramMap=Eg(this.params)),this._paramMap}},{key:"queryParamMap",get:function e(){return this._queryParamMap||(this._queryParamMap=Eg(this.queryParams)),this._queryParamMap}}]);return e}();var mm=function(e){t(s,e);function s(s,r){var n;n=e.call(this,r)||this,n.url=s,pm(i(n),r);return n}var r=s.prototype;r.toString=function e(){return cm(this._root)};return s}(rm);function pm(e,s){s.value._routerState=e,s.children.forEach(function(s){return pm(e,s)})}function cm(e){var s=e.children.length>0?" { "+e.children.map(cm).join(", ")+" } ":"";return""+e.value+s}function dm(e){if(e.snapshot){var s=e.snapshot,r=e._futureSnapshot;e.snapshot=r,Tg(s.queryParams,r.queryParams)||e.queryParams.next(r.queryParams),s.fragment!==r.fragment&&e.fragment.next(r.fragment),Tg(s.params,r.params)||e.params.next(r.params),function(e,s){if(e.length!==s.length)return!1;for(var r=0;r0&&vm(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(n&&n!==Dg(r))throw new Error("{outlets:{}} has to be the last command")}var s=e.prototype;s.toRoot=function e(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]};return e}();var xm=function e(s,r,n){this.segmentGroup=s,this.processChildren=r,this.index=n};function Em(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[kg]:""+e}function fm(e,s,r){if(e||(e=new Ig([],{})),0===e.segments.length&&e.hasChildren())return qm(e,s,r);var n=function(e,s,r){var n=0,a=s;var i={match:!1,pathIndex:0,commandIndex:0};for(;a=r.length)return i;var t=e.segments[a],o=Em(r[n]),l=n0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!bm(o,l,t))return i;n+=2}else{if(!bm(o,{},t))return i;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(e,s,r),a=r.slice(n.commandIndex);if(n.match&&n.pathIndex0?new Ig([],(a={},a[kg]=s,a)):s;return new Kg(i,r,n)};s.expandSegmentGroup=function e(s,r,n,a){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(s,r,n).pipe(V(function(e){return new Ig([],e)})):this.expandSegment(s,n,r,n.segments,a,!0)};s.expandChildren=function e(s,r,n){var a=this;return function(e,s){if(0===Object.keys(e).length)return Gl({});var r=[],n=[],a={};return Bg(e,function(e,i){var t=s(i,e).pipe(V(function(e){return a[i]=e}));i===kg?r.push(t):n.push(t)}),Gl.apply(null,r.concat(n)).pipe(s_(),u_(),V(function(){return a}))}(n.children,function(e,n){return a.expandSegmentGroup(s,r,n,e)})};s.expandSegment=function e(s,r,n,a,i,t){var o=this;return Gl.apply(void 0,n).pipe(V(function(e){return o.expandSegmentAgainstRoute(s,r,n,e,a,i,t).pipe(v_(function(e){if(e instanceof Bm)return Gl(null);throw e}))}),s_(),q_(function(e){return!!e}),v_(function(e,s){if(e instanceof Wl||"EmptyError"===e.name){if(o.noLeftoversInUrl(r,a,i))return Gl(new Ig([],{}));throw new Bm(r)}throw e}))};s.noLeftoversInUrl=function e(s,r,n){return 0===r.length&&!s.children[n]};s.expandSegmentAgainstRoute=function e(s,r,n,a,i,t,o){return Lm(a)!==t?Pm(r):void 0===a.redirectTo?this.matchSegmentAgainstRoute(s,r,a,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,r,n,a,i,t):Pm(r)};s.expandSegmentAgainstRouteUsingRedirect=function e(s,r,n,a,i,t){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,n,a,t):this.expandRegularSegmentAgainstRouteUsingRedirect(s,r,n,a,i,t)};s.expandWildCardWithParamsAgainstRouteUsingRedirect=function e(s,r,n,a){var i=this;var t=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Km(t):this.lineralizeSegments(n,t).pipe(Q(function(e){var n=new Ig(e,{});return i.expandSegment(s,n,r,e,a,!1)}))};s.expandRegularSegmentAgainstRouteUsingRedirect=function e(s,r,n,a,i,t){var o=this;var l=Mm(r,a,i),_=l.matched,w=l.consumedSegments,g=l.lastChild,m=l.positionalParamSegments;if(!_)return Pm(r);var p=this.applyRedirectCommands(w,a.redirectTo,m);return a.redirectTo.startsWith("/")?Km(p):this.lineralizeSegments(a,p).pipe(Q(function(e){return o.expandSegment(s,r,n,e.concat(i.slice(g)),t,!1)}))};s.matchSegmentAgainstRoute=function e(s,r,n,a){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(s.injector,n).pipe(V(function(e){return n._loadedConfig=e,new Ig(a,{})})):Gl(new Ig(a,{}));var t=Mm(r,n,a),o=t.matched,l=t.consumedSegments,_=t.lastChild;if(!o)return Pm(r);var w=a.slice(_);return this.getChildConfig(s,n,a).pipe(Q(function(e){var s=e.module,n=e.routes,a=function(e,s,r,n){return r.length>0&&function(e,s,r){return n.some(function(r){return Rm(e,s,r)&&Lm(r)!==kg})}(e,r)?{segmentGroup:Om(new Ig(s,function(e,s){var r={};r[kg]=s;for(var n=e,a=Array.isArray(n),i=0,n=a?n:n[Symbol.iterator]();;){var t;if(a){if(i>=n.length)break;t=n[i++]}else{i=n.next();if(i.done)break;t=i.value}var o=t;""===o.path&&Lm(o)!==kg&&(r[Lm(o)]=new Ig([],{}))}return r}(n,new Ig(r,e.children)))),slicedSegments:[]}:0===r.length&&function(e,s,r){return n.some(function(r){return Rm(e,s,r)})}(e,r)?{segmentGroup:Om(new Ig(e.segments,function(e,s,r,n){var a={};for(var i=r,t=Array.isArray(i),o=0,i=t?i:i[Symbol.iterator]();;){var l;if(t){if(o>=i.length)break;l=i[o++]}else{o=i.next();if(o.done)break;l=o.value}var _=l;Rm(e,s,_)&&!n[Lm(_)]&&(a[Lm(_)]=new Ig([],{}))}return Object.assign({},n,a)}(e,r,n,e.children))),slicedSegments:r}:{segmentGroup:e,slicedSegments:r}}(r,l,w,n),t=a.segmentGroup,o=a.slicedSegments;return 0===o.length&&t.hasChildren()?i.expandChildren(s,n,t).pipe(V(function(e){return new Ig(l,e)})):0===n.length&&0===o.length?Gl(new Ig(l,{})):i.expandSegment(s,t,n,o,kg,!0).pipe(V(function(e){return new Ig(l.concat(e.segments),e.children)}))}))};s.getChildConfig=function e(s,r,n){var a=this;return r.children?Gl(new Fg(r.children,s)):r.loadChildren?void 0!==r._loadedConfig?Gl(r._loadedConfig):function(e,s,r){var n=s.canLoad;return n&&0!==n.length?W(n).pipe(V(function(n){var a=e.get(n);var i;if(function(e){return e&&Am(e.canLoad)}(a))i=a.canLoad(s,r);else{if(!Am(a))throw new Error("Invalid CanLoad guard");i=a(s,r)}return Ug(i)})).pipe(s_(),(a=function e(s){return!0===s},function(e){return e.lift(new h_(a,void 0,e))})):Gl(!0);var a}(s.injector,r,n).pipe(Q(function(e){return e?a.configLoader.load(s.injector,r).pipe(V(function(e){return r._loadedConfig=e,e})):function(e){return new y(function(s){return s.error(qg("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(r)})):Gl(new Fg([],s))};s.lineralizeSegments=function e(s,r){var n=[],a=r.root;for(;;){if(n=n.concat(a.segments),0===a.numberOfChildren)return Gl(n);if(a.numberOfChildren>1||!a.children[kg])return Im(s.redirectTo);a=a.children[kg]}};s.applyRedirectCommands=function e(s,r,n){return this.applyRedirectCreatreUrlTree(r,this.urlSerializer.parse(r),s,n)};s.applyRedirectCreatreUrlTree=function e(s,r,n,a){var i=this.createSegmentGroup(s,r.root,n,a);return new Kg(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)};s.createQueryParams=function e(s,r){var n={};return Bg(s,function(e,s){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);n[s]=r[a]}else n[s]=e}),n};s.createSegmentGroup=function e(s,r,n,a){var i=this;var t=this.createSegments(s,r.segments,n,a);var o={};return Bg(r.children,function(e,r){o[r]=i.createSegmentGroup(s,e,n,a)}),new Ig(t,o)};s.createSegments=function e(s,r,n,a){var i=this;return r.map(function(e){return e.path.startsWith(":")?i.findPosParam(s,e,a):i.findOrReturn(e,n)})};s.findPosParam=function e(s,r,n){var a=n[r.path.substring(1)];if(!a)throw new Error("Cannot redirect to '"+s+"'. Cannot find '"+r.path+"'.");return a};s.findOrReturn=function e(s,r){var n=0;for(var a=r,i=Array.isArray(a),t=0,a=i?a:a[Symbol.iterator]();;){var o;if(i){if(t>=a.length)break;o=a[t++]}else{t=a.next();if(t.done)break;o=t.value}var l=o;if(l.path===s.path)return r.splice(n),l;n++}return s};return e}();function Mm(e,s,r){if(""===s.path)return"full"===s.pathMatch&&(e.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(s.matcher||hg)(r,e,s);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Om(e){if(1===e.numberOfChildren&&e.children[kg]){var s=e.children[kg];return new Ig(e.segments.concat(s.segments),s.children)}return e}function Rm(e,s,r){return(!(e.hasChildren()||s.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function Lm(e){return e.outlet||kg}var jm=function e(s){this.path=s,this.route=this.path[this.path.length-1]};var Vm=function e(s,r){this.component=s,this.route=r};function Gm(e,s,r){var n=e._root;return function e(s,r,n,a,i){if(i===void 0){i={canDeactivateChecks:[],canActivateChecks:[]}}var t=tm(r);return s.children.forEach(function(s){!function(s,r,n,a,i){if(i===void 0){i={canDeactivateChecks:[],canActivateChecks:[]}}var t=s.value,o=r?r.value:null,l=n?n.getContext(s.value.outlet):null;if(o&&t.routeConfig===o.routeConfig){var _=function(e,s,r){if("function"==typeof r)return r(e,s);switch(r){case"pathParamsChange":return!Mg(e.url,s.url);case"pathParamsOrQueryParamsChange":return!Mg(e.url,s.url)||!Tg(e.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!um(e,s)||!Tg(e.queryParams,s.queryParams);case"paramsChange":default:return!um(e,s)}}(o,t,t.routeConfig.runGuardsAndResolvers);_?i.canActivateChecks.push(new jm(a)):(t.data=o.data,t._resolvedData=o._resolvedData),e(s,r,t.component?l?l.children:null:n,a,i),_&&i.canDeactivateChecks.push(new Vm(l&&l.outlet&&l.outlet.component||null,o))}else o&&zm(r,l,i),i.canActivateChecks.push(new jm(a)),e(s,null,t.component?l?l.children:null:n,a,i)}(s,t[s.value.outlet],n,a.concat([s.value]),i),delete t[s.value.outlet]}),Bg(t,function(e,s){return zm(e,n.getContext(s),i)}),i}(n,s?s._root:null,r,[n.value])}function Hm(e,s,r){var n=function(e){if(!e)return null;for(var s=e.parent;s;s=s.parent){var r=s.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(s);return(n?n.module.injector:r).get(e)}function zm(e,s,r){var n=tm(e),a=e.value;Bg(n,function(e,n){zm(e,a.component?s?s.children.getContext(n):null:s,r)}),r.canDeactivateChecks.push(new Vm(a.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,a))}var Wm=Symbol("INITIAL_VALUE");function Qm(){return y_(function(e){return(function(){for(var e=arguments.length,s=new Array(e),r=0;r=i.length)break;l=i[o++]}else{o=i.next();if(o.done)break;l=o.value}var _=l;try{return this.processSegmentAgainstRoute(_,r,n,a)}catch(w){if(!(w instanceof ep))throw w}}if(this.noLeftoversInUrl(r,n,a))return[];throw new ep};s.noLeftoversInUrl=function e(s,r,n){return 0===r.length&&!s.children[n]};s.processSegmentAgainstRoute=function e(s,r,n,a){if(s.redirectTo)throw new ep;if((s.outlet||kg)!==a)throw new ep;var i,t=[],o=[];if("**"===s.path){var l=n.length>0?Dg(n).parameters:{};i=new gm(n,l,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,op(s),a,s.component,s,rp(r),np(r)+n.length,lp(s))}else{var _=function(e,s,r){if(""===s.path){if("full"===s.pathMatch&&(e.hasChildren()||r.length>0))throw new ep;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(s.matcher||hg)(r,e,s);if(!n)throw new ep;var a={};Bg(n.posParams,function(e,s){a[s]=e.path});var i=n.consumed.length>0?Object.assign({},a,n.consumed[n.consumed.length-1].parameters):a;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:i}}(r,s,n);t=_.consumedSegments,o=n.slice(_.lastChild),i=new gm(t,_.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,op(s),a,s.component,s,rp(r),np(r)+t.length,lp(s))}var w=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(s),g=ap(r,t,o,w,this.relativeLinkResolution),m=g.segmentGroup,p=g.slicedSegments;if(0===p.length&&m.hasChildren()){var c=this.processChildren(w,m);return[new im(i,c)]}if(0===w.length&&0===p.length)return[new im(i,[])];var d=this.processSegment(w,m,p,kg);return[new im(i,d)]};return e}();function rp(e){var s=e;for(;s._sourceSegment;){s=s._sourceSegment}return s}function np(e){var s=e,r=s._segmentIndexShift?s._segmentIndexShift:0;for(;s._sourceSegment;){r+=(s=s._sourceSegment)._segmentIndexShift?s._segmentIndexShift:0}return r-1}function ap(e,s,r,n,a){if(r.length>0&&function(e,s,r){return n.some(function(r){return ip(e,s,r)&&tp(r)!==kg})}(e,r)){var i=new Ig(s,function(e,s,r,n){var a={};a[kg]=n,n._sourceSegment=e,n._segmentIndexShift=s.length;for(var i=r,t=Array.isArray(i),o=0,i=t?i:i[Symbol.iterator]();;){var l;if(t){if(o>=i.length)break;l=i[o++]}else{o=i.next();if(o.done)break;l=o.value}var _=l;if(""===_.path&&tp(_)!==kg){var w=new Ig([],{});w._sourceSegment=e,w._segmentIndexShift=s.length,a[tp(_)]=w}}return a}(e,s,n,new Ig(r,e.children)));return i._sourceSegment=e,i._segmentIndexShift=s.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&function(e,s,r){return n.some(function(r){return ip(e,s,r)})}(e,r)){var t=new Ig(e.segments,function(e,s,r,n,a,i){var t={};for(var o=n,l=Array.isArray(o),_=0,o=l?o:o[Symbol.iterator]();;){var w;if(l){if(_>=o.length)break;w=o[_++]}else{_=o.next();if(_.done)break;w=_.value}var g=w;if(ip(e,r,g)&&!a[tp(g)]){var m=new Ig([],{});m._sourceSegment=e,m._segmentIndexShift="legacy"===i?e.segments.length:s.length,t[tp(g)]=m}}return Object.assign({},a,t)}(e,s,r,n,e.children,a));return t._sourceSegment=e,t._segmentIndexShift=s.length,{segmentGroup:t,slicedSegments:r}}var o=new Ig(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=s.length,{segmentGroup:o,slicedSegments:r}}function ip(e,s,r){return(!(e.hasChildren()||s.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function tp(e){return e.outlet||kg}function op(e){return e.data||{}}function lp(e){return e.resolve||{}}function _p(e,s,r,n){var a=Hm(e,s,n);return Ug(a.resolve?a.resolve(s,r):a(s,r))}function wp(e){return function(s){return s.pipe(y_(function(s){var r=e(s);return r?W(r).pipe(V(function(){return s})):W([s])}))}}var gp=function e(){};var mp=function(){function e(){}var s=e.prototype;s.shouldDetach=function e(s){return!1};s.store=function e(s,r){};s.shouldAttach=function e(s){return!1};s.retrieve=function e(s){return null};s.shouldReuseRoute=function e(s,r){return s.routeConfig===r.routeConfig};return e}();var pp=new Ce("ROUTES");var cp=function(){function e(e,s,r,n){this.loader=e,this.compiler=s,this.onLoadStartListener=r,this.onLoadEndListener=n}var s=e.prototype;s.load=function e(s,r){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(r),this.loadModuleFactory(r.loadChildren).pipe(V(function(e){n.onLoadEndListener&&n.onLoadEndListener(r);var a=e.create(s);return new Fg(Ag(a.injector.get(pp)).map(Cg),a)}))};s.loadModuleFactory=function e(s){var r=this;return"string"==typeof s?W(this.loader.load(s)):Ug(s()).pipe(Q(function(e){return e instanceof He?Gl(e):W(r.compiler.compileModuleAsync(e))}))};return e}();var dp=function e(){};var up=function(){function e(){}var s=e.prototype;s.shouldProcessUrl=function e(s){return!0};s.extract=function e(s){return s};s.merge=function e(s,r){return s};return e}();function vp(e){throw e}function Np(e,s,r){return s.parse("/")}function kp(e,s){return Gl(null)}var xp=function(){function e(e,s,r,n,a,i,t,o){var l=this;this.rootComponentType=e,this.urlSerializer=s,this.rootContexts=r,this.location=n,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new D,this.errorHandler=vp,this.malformedUriErrorHandler=Np,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kp,afterPreactivation:kp},this.urlHandlingStrategy=new up,this.routeReuseStrategy=new mp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(Ge),this.console=a.get(Za);var _=a.get(ci);this.isNgZoneEnabled=_ instanceof ci,this.resetConfig(o),this.currentUrlTree=new Kg(new Ig([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cp(i,t,function(e){return l.triggerEvent(new gg(e))},function(e){return l.triggerEvent(new mg(e))}),this.routerState=lm(this.currentUrlTree,this.rootComponentType),this.transitions=new Hl({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}var r=e.prototype;r.setupNavigations=function e(s){var r=this;var n=this.events;return s.pipe(r_(function(e){return 0!==e.id}),V(function(e){return Object.assign({},e,{extractedUrl:r.urlHandlingStrategy.extract(e.rawUrl)})}),y_(function(e){var s=!1,a=!1;return Gl(e).pipe(P_(function(e){r.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:r.lastSuccessfulNavigation?Object.assign({},r.lastSuccessfulNavigation,{previousNavigation:null}):null}}),y_(function(e){var s=!r.navigated||e.extractedUrl.toString()!==r.browserUrlTree.toString();if(("reload"===r.onSameUrlNavigation||s)&&r.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Gl(e).pipe(y_(function(e){var s=r.transitions.getValue();return n.next(new rg(e.id,r.serializeUrl(e.extractedUrl),e.source,e.restoredState)),s!==r.transitions.getValue()?Yl:[e]}),y_(function(e){return Promise.resolve(e)}),function(e,s,r,n){return function(a){return a.pipe(y_(function(a){return function(e,s,r,n,i){return new Jm(e,s,r,a.extractedUrl,i).apply()}(e,s,r,0,n).pipe(V(function(e){return Object.assign({},a,{urlAfterRedirects:e})}))}))}}(r.ngModule.injector,r.configLoader,r.urlSerializer,r.config),P_(function(e){r.currentNavigation=Object.assign({},r.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,s,r,n,a){return function(i){return i.pipe(Q(function(i){return function(e,s,r,n,a,i){if(a===void 0){a="emptyOnly"}if(i===void 0){i="legacy"}return new sp(e,s,r,n,a,i).recognize()}(e,s,i.urlAfterRedirects,r(i.urlAfterRedirects),n,a).pipe(V(function(e){return Object.assign({},i,{targetSnapshot:e})}))}))}}(r.rootComponentType,r.config,function(e){return r.serializeUrl(e)},r.paramsInheritanceStrategy,r.relativeLinkResolution),P_(function(e){"eager"===r.urlUpdateStrategy&&(e.extras.skipLocationChange||r.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),r.browserUrlTree=e.urlAfterRedirects)}),P_(function(e){var s=new tg(e.id,r.serializeUrl(e.extractedUrl),r.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(s)}));if(s&&r.rawUrlTree&&r.urlHandlingStrategy.shouldProcessUrl(r.rawUrlTree)){var a=e.id,i=e.extractedUrl,t=e.source,o=e.restoredState,l=e.extras,_=new rg(a,r.serializeUrl(i),t,o);n.next(_);var w=lm(i,r.rootComponentType).snapshot;return Gl(Object.assign({},e,{targetSnapshot:w,urlAfterRedirects:i,extras:Object.assign({},l,{skipLocationChange:!1,replaceUrl:!1})}))}return r.rawUrlTree=e.rawUrl,r.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Yl}),wp(function(e){var s=e.targetSnapshot,n=e.id,a=e.extractedUrl,i=e.rawUrl,t=e.extras,o=t.skipLocationChange,l=t.replaceUrl;return r.hooks.beforePreactivation(s,{navigationId:n,appliedUrlTree:a,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!l})}),P_(function(e){var s=new og(e.id,r.serializeUrl(e.extractedUrl),r.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);r.triggerEvent(s)}),V(function(e){return Object.assign({},e,{guards:Gm(e.targetSnapshot,e.currentSnapshot,r.rootContexts)})}),function(e,s){return function(r){return r.pipe(Q(function(r){var n=r.targetSnapshot,a=r.currentSnapshot,i=r.guards,t=i.canActivateChecks,o=i.canDeactivateChecks;return 0===o.length&&0===t.length?Gl(Object.assign({},r,{guardsResult:!0})):function(e,s,r,n){return W(o).pipe(Q(function(e){return function(e,s,r,n,a){var i=s&&s.routeConfig?s.routeConfig.canDeactivate:null;return i&&0!==i.length?Gl(i.map(function(i){var t=Hm(i,s,a);var o;if(function(e){return e&&Am(e.canDeactivate)}(t))o=Ug(t.canDeactivate(e,s,r,n));else{if(!Am(t))throw new Error("Invalid CanDeactivate guard");o=Ug(t(e,s,r,n))}return o.pipe(q_())})).pipe(Qm()):Gl(!0)}(e.component,e.route,r,s,n)}),q_(function(e){return!0!==e},!0))}(0,n,a,e).pipe(Q(function(r){return r&&function(e){return"boolean"==typeof r}()?function(e,s,r,n){return W(t).pipe(U_(function(s){return W([$m(s.route.parent,n),Zm(s.route,n),Xm(e,s.path,r),Ym(e,s.route,r)]).pipe(s_(),q_(function(e){return!0!==e},!0))}),q_(function(e){return!0!==e},!0))}(n,0,e,s):Gl(r)}),V(function(e){return Object.assign({},r,{guardsResult:e})}))}))}}(r.ngModule.injector,function(e){return r.triggerEvent(e)}),P_(function(e){if(Dm(e.guardsResult)){var s=qg('Redirecting to "'+r.serializeUrl(e.guardsResult)+'"');throw s.url=e.guardsResult,s}}),P_(function(e){var s=new lg(e.id,r.serializeUrl(e.extractedUrl),r.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);r.triggerEvent(s)}),r_(function(e){if(!e.guardsResult){r.resetUrlToCurrentUrlTree();var s=new ag(e.id,r.serializeUrl(e.extractedUrl),"");return n.next(s),e.resolve(!1),!1}return!0}),wp(function(e){if(e.guards.canActivateChecks.length)return Gl(e).pipe(P_(function(e){var s=new _g(e.id,r.serializeUrl(e.extractedUrl),r.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);r.triggerEvent(s)}),function(e,s){return function(r){return r.pipe(Q(function(r){var n=r.targetSnapshot,a=r.guards.canActivateChecks;return a.length?W(a).pipe(U_(function(r){return function(e,s,r,a){return function(e,s,r,n){var a=Object.keys(e);if(0===a.length)return Gl({});if(1===a.length){var i=a[0];return _p(e[i],s,r,n).pipe(V(function(e){var s;return s={},s[i]=e,s}))}var t={};return W(a).pipe(Q(function(a){return _p(e[a],s,r,n).pipe(V(function(e){return t[a]=e,e}))})).pipe(u_(),V(function(){return t}))}(e._resolve,e,n,a).pipe(V(function(s){return e._resolvedData=s,e.data=Object.assign({},e.data,wm(e,r).resolve),null}))}(r.route,0,e,s)}),function(e,s){return arguments.length>=2?function(r){return h(A_(e,s),o_(1),p_(s))(r)}:function(s){return h(A_(function(s,r,n){return e(s,r,n+1)}),o_(1))(s)}}(function(e,s){return e}),V(function(e){return r})):Gl(r)}))}}(r.paramsInheritanceStrategy,r.ngModule.injector),P_(function(e){var s=new wg(e.id,r.serializeUrl(e.extractedUrl),r.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);r.triggerEvent(s)}))}),wp(function(e){var s=e.targetSnapshot,n=e.id,a=e.extractedUrl,i=e.rawUrl,t=e.extras,o=t.skipLocationChange,l=t.replaceUrl;return r.hooks.afterPreactivation(s,{navigationId:n,appliedUrlTree:a,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!l})}),V(function(e){var s=function(e,s,r){var n=function e(s,r,n){if(n&&s.shouldReuseRoute(r.value,n.value.snapshot)){var a=n.value;a._futureSnapshot=r.value;var i=function(s,r,n){return r.children.map(function(r){for(var a=n.children,i=Array.isArray(a),t=0,a=i?a:a[Symbol.iterator]();;){var o;if(i){if(t>=a.length)break;o=a[t++]}else{t=a.next();if(t.done)break;o=t.value}var l=o;if(s.shouldReuseRoute(l.value.snapshot,r.value))return e(s,r,l)}return e(s,r)})}(s,r,n);return new im(a,i)}{var t=s.retrieve(r.value);if(t){var o=t.route;return function e(s,r){if(s.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(s.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=s.value;for(var n=0;no;){if(l-=o,!(t=t.parent))throw new Error("Invalid number of '../'");o=t.segments.length}return new xm(t,!1,o-l)}()}(i,0,e),o=t.processChildren?qm(t.segmentGroup,t.index,i.commands):fm(t.segmentGroup,t.index,i.commands);return Nm(t.segmentGroup,o,s,n,a)}(w,this.currentUrlTree,s,m,g)};r.navigateByUrl=function e(s,r){if(r===void 0){r={skipLocationChange:!1}}ts()&&this.isNgZoneEnabled&&!ci.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Dm(s)?s:this.parseUrl(s),a=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,r)};r.navigate=function e(s,r){if(r===void 0){r={skipLocationChange:!1}}return function(e){for(var s=0;s=a.length)break;o=a[t++]}else{t=a.next();if(t.done)break;o=t.value}var l=o;if(l.loadChildren&&!l.canLoad&&l._loadedConfig){var _=l._loadedConfig;n.push(this.processRoutes(_.module,_.routes))}else l.loadChildren&&!l.canLoad?n.push(this.preloadConfig(s,l)):l.children&&n.push(this.processRoutes(s,l.children))}return W(n).pipe(X(),V(function(e){return void 0}))};s.preloadConfig=function e(s,r){var n=this;return this.preloadingStrategy.preload(r,function(){return n.loader.load(s.injector,r).pipe(Q(function(e){return r._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})};return e}();var Bp=function(){function e(e,s,r){if(r===void 0){r={}}this.router=e,this.viewportScroller=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}var s=e.prototype;s.init=function e(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()};s.createScrollEvents=function e(){var s=this;return this.router.events.subscribe(function(e){e instanceof rg?(s.store[s.lastId]=s.viewportScroller.getScrollPosition(),s.lastSource=e.navigationTrigger,s.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ng&&(s.lastId=e.id,s.scheduleScrollEvent(e,s.router.parseUrl(e.urlAfterRedirects).fragment))})};s.consumeScrollEvents=function e(){var s=this;return this.router.events.subscribe(function(e){e instanceof vg&&(e.position?"top"===s.options.scrollPositionRestoration?s.viewportScroller.scrollToPosition([0,0]):"enabled"===s.options.scrollPositionRestoration&&s.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===s.options.anchorScrolling?s.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==s.options.scrollPositionRestoration&&s.viewportScroller.scrollToPosition([0,0]))})};s.scheduleScrollEvent=function e(s,r){this.router.triggerEvent(new vg(s,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))};s.ngOnDestroy=function e(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()};return e}();var Up=new Ce("ROUTER_CONFIGURATION"),Pp=new Ce("ROUTER_FORROOT_GUARD"),Kp=[Uo,{provide:Rg,useClass:Lg},{provide:xp,useFactory:jp,deps:[Ui,Rg,yp,Uo,Js,Ki,ai,pp,Up,[dp,new me],[gp,new me]]},yp,{provide:_m,useFactory:Vp,deps:[xp]},{provide:Ki,useClass:Ri},Dp,Ap,Tp,{provide:Up,useValue:{enableTracing:!1}}];function Ip(){return new Ci("Router",xp)}var Jp=function(){function e(e,s){}e.forRoot=function s(r,n){return{ngModule:e,providers:[Kp,Lp(r),{provide:Pp,useFactory:Rp,deps:[[xp,new me,new ce]]},{provide:Up,useValue:n||{}},{provide:Do,useFactory:Op,deps:[To,[new ge(Bo),new me],Up]},{provide:Bp,useFactory:Mp,deps:[xp,jl,Up]},{provide:Cp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ap},{provide:Ci,multi:!0,useFactory:Ip},[Gp,{provide:La,multi:!0,useFactory:Hp,deps:[Gp]},{provide:Wp,useFactory:zp,deps:[Gp]},{provide:Qa,multi:!0,useExisting:Wp}]]}};e.forChild=function s(r){return{ngModule:e,providers:[Lp(r)]}};return e}();function Mp(e,s,r){return r.scrollOffset&&s.setOffset(r.scrollOffset),new Bp(e,s,r)}function Op(e,s,r){if(r===void 0){r={}}return r.useHash?new Ko(e,s):new Io(e,s)}function Rp(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Lp(e){return[{provide:zs,multi:!0,useValue:e},{provide:pp,multi:!0,useValue:e}]}function jp(e,s,r,n,a,i,t,o,l,_,w){if(l===void 0){l={}}var g=new xp(null,s,r,n,a,i,t,Ag(o));if(_&&(g.urlHandlingStrategy=_),w&&(g.routeReuseStrategy=w),l.errorHandler&&(g.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(g.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){var m=R_();g.events.subscribe(function(e){m.logGroup("Router Event: "+e.constructor.name),m.log(e.toString()),m.log(e),m.logGroupEnd()})}return l.onSameUrlNavigation&&(g.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(g.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(g.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(g.relativeLinkResolution=l.relativeLinkResolution),g}function Vp(e){return e.routerState.root}var Gp=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new D}var s=e.prototype;s.appInitializer=function e(){var s=this;return this.injector.get(Ao,Promise.resolve(null)).then(function(){var e=null;var r=new Promise(function(s){return e=s}),n=s.injector.get(xp),a=s.injector.get(Up);if(s.isLegacyDisabled(a)||s.isLegacyEnabled(a))e(!0);else if("disabled"===a.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '"+a.initialNavigation+"'");n.hooks.afterPreactivation=function(){return s.initNavigation?Gl(null):(s.initNavigation=!0,e(!0),s.resultOfPreactivationDone)},n.initialNavigation()}return r})};s.bootstrapListener=function e(s){var r=this.injector.get(Up),n=this.injector.get(Dp),a=this.injector.get(Bp),i=this.injector.get(xp),t=this.injector.get(Ui);s===t.components[0]&&(this.isLegacyEnabled(r)?i.initialNavigation():this.isLegacyDisabled(r)&&i.setUpLocationChangeListener(),n.setUpPreloading(),a.init(),i.resetRootComponentType(t.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())};s.isLegacyEnabled=function e(s){return"legacy_enabled"===s.initialNavigation||!0===s.initialNavigation||void 0===s.initialNavigation};s.isLegacyDisabled=function e(s){return"legacy_disabled"===s.initialNavigation||!1===s.initialNavigation};return e}();function Hp(e){return e.appInitializer.bind(e)}function zp(e){return e.bootstrapListener.bind(e)}var Wp=new Ce("Router Initializer");var Qp=an({encapsulation:2,styles:[],data:{}});function Zp(e){return xt(0,[(e()(),rt(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),pa(1,212992,null,0,bp,[yp,Mr,_r,[8,null],Us],null,null)],function(e,s){e(s,1,0)},null)}function $p(e){return xt(0,[(e()(),rt(0,0,null,null,1,"ng-component",[],null,null,null,Zp,Qp)),pa(1,49152,null,0,Ng,[],null,null)],null,null)}var Yp=jn("ng-component",Ng,$p,{},{},[]);var Xp=function(){function e(){}var s=e.prototype;s.transform=function e(s,r){if(r===void 0){r=null}return Object.keys(s).sort()};return e}();var ec=function(){function e(e){this.sanitizer=e}var s=e.prototype;s.transform=function e(s){return this.sanitizer.bypassSecurityTrustResourceUrl(s)};return e}();var sc=function(){function e(){this.showCourseDescription=!1,this.showStudieplan=!1}var s=e.prototype;s.ngOnInit=function e(){};return e}();var rc=an({encapsulation:0,styles:[["iframe.studieplan[_ngcontent-%COMP%]{width:1150px;height:600px;margin-left:-10%}table.data-table[_ngcontent-%COMP%]{margin:0}@media only screen and (max-width:1200px){iframe.studieplan[_ngcontent-%COMP%]{width:100%;max-width:995px;height:500px;margin-left:0}}@media only screen and (max-width:768px){table.data-table[_ngcontent-%COMP%]{padding-top:100px}}"]],data:{}});function nc(e){return xt(0,[(e()(),rt(0,0,null,null,1,"iframe",[["style","width:100%;height:500px"]],[[8,"src",5]],null,null,null,null)),ct(1,1)],null,function(e,s){var r=s.component,n=sn(s,0,0,e(s,1,0,ea(s.parent,1),"https://kurser.dtu.dk/course/"+r.course.info.course_no));e(s,0,0,n)})}function ac(e){return xt(0,[(e()(),rt(0,0,null,null,0,"iframe",[["class","studieplan"],["src","https://studieplan.dtu.dk"]],null,null,null,null,null))],null,null)}function ic(e){return xt(0,[ca(0,Jl,[$a]),ca(0,ec,[Vw]),(e()(),rt(2,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),vt(3,null,[""," ",""])),(e()(),rt(4,0,null,null,64,"div",[["class","row"]],null,null,null,null,null)),(e()(),rt(5,0,null,null,25,"div",[["class","col-12 col-md-6"]],null,null,null,null,null)),(e()(),rt(6,0,null,null,24,"table",[["class","table data-table"],["stl",""]],null,null,null,null,null)),(e()(),rt(7,0,null,null,2,"thead",[],null,null,null,null,null)),(e()(),rt(8,0,null,null,1,"th",[["colspan","2"]],null,null,null,null,null)),(e()(),vt(-1,null,["Kursusinformation"])),(e()(),rt(10,0,null,null,20,"tbody",[],null,null,null,null,null)),(e()(),rt(11,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),rt(12,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["ECTS"])),(e()(),rt(14,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(15,null,["",""])),(e()(),rt(16,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),rt(17,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Sprog"])),(e()(),rt(19,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(20,null,["",""])),(e()(),rt(21,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),rt(22,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Skemaplacering"])),(e()(),rt(24,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(25,null,["",""])),(e()(),rt(26,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),rt(27,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Niveau"])),(e()(),rt(29,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(30,null,["",""])),(e()(),rt(31,0,null,null,37,"div",[["class","col-12 col-md-6"]],null,null,null,null,null)),(e()(),rt(32,0,null,null,36,"table",[["class","table data-table"]],null,null,null,null,null)),(e()(),rt(33,0,null,null,7,"thead",[],null,null,null,null,null)),(e()(),rt(34,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),rt(35,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Kernetal"])),(e()(),rt(37,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["V\xe6rdi"])),(e()(),rt(39,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Percentil"])),(e()(),rt(41,0,null,null,27,"tbody",[],null,null,null,null,null)),(e()(),rt(42,0,null,null,7,"tr",[],null,null,null,null,null)),(e()(),rt(43,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Karaktergennemsnit"])),(e()(),rt(45,0,null,null,2,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(46,null,["",""])),ct(47,2),(e()(),rt(48,0,null,null,1,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(-1,null,["PERCENTIL"])),(e()(),rt(50,0,null,null,10,"tr",[],null,null,null,null,null)),(e()(),rt(51,0,null,null,4,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,[" Indl\xe6ring "])),(e()(),rt(53,0,null,null,2,"a",[["class","js-tooltip"],["href","javascript:void(0)"],["title","hello there"]],null,null,null,null,null)),(e()(),rt(54,0,null,null,1,":svg:svg",[["aria-hidden","true"],["class","icon-svg"],["focusable","false"]],null,null,null,null,null)),(e()(),rt(55,0,null,null,0,":svg:use",[[":xlink:href","#help-circle-outline"]],null,null,null,null,null)),(e()(),rt(56,0,null,null,2,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(57,null,[""," / 5"])),ct(58,2),(e()(),rt(59,0,null,null,1,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(-1,null,["PERCENTIL"])),(e()(),rt(61,0,null,null,7,"tr",[],null,null,null,null,null)),(e()(),rt(62,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,[" Arbejde "])),(e()(),rt(64,0,null,null,2,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(65,null,[""," / 5"])),ct(66,2),(e()(),rt(67,0,null,null,1,"td",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(-1,null,["PERCENTIL"])),(e()(),rt(69,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),rt(70,0,null,null,1,"a",[],null,[[null,"click"]],function(e,s,r){var n=!0,a=e.component;return"click"===s&&(n=0!=(a.showCourseDescription=!a.showCourseDescription)&&n),n},null,null)),(e()(),vt(71,null,[" "," kursusbeskrivelse\n"])),(e()(),st(16777216,null,null,1,null,nc)),pa(73,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),rt(74,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),rt(75,0,null,null,1,"a",[],null,[[null,"click"]],function(e,s,r){var n=!0,a=e.component;return"click"===s&&(n=0!=(a.showStudieplan=!a.showStudieplan)&&n),n},null,null)),(e()(),vt(76,null,[" "," din studieplan\n"])),(e()(),st(16777216,null,null,1,null,ac)),pa(78,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),rt(79,0,null,null,1,":svg:svg",[["aria-hidden","true"],["class","icon-svg"],["focusable","false"]],null,null,null,null,null)),(e()(),rt(80,0,null,null,0,":svg:use",[[":xlink:href","#printer"]],null,null,null,null,null))],function(e,s){var r=s.component;e(s,73,0,r.showCourseDescription),e(s,78,0,r.showStudieplan)},function(e,s){var r=s.component;e(s,3,0,r.course.info.course_no,r.course.info.name),e(s,15,0,r.course.info.ECTS),e(s,20,0,r.course.info.language),e(s,25,0,r.course.info.time),e(s,30,0,r.course.info.level);var n=sn(s,46,0,e(s,47,0,ea(s,0),r.course.grades[0].exam_avg,"1.0-1"));e(s,46,0,n);var a=sn(s,57,0,e(s,58,0,ea(s,0),r.course.eval_points[0].learning,"1.0-1"));e(s,57,0,a);var i=sn(s,65,0,e(s,66,0,ea(s,0),r.course.eval_points[0].worklevel,"1.0-1"));e(s,65,0,i),e(s,71,0,r.showCourseDescription?"Luk":"Vis"),e(s,76,0,r.showStudieplan?"Luk":"\xc5bn")})}var tc=function e(){};var oc=function e(){};var lc="*";function _c(e,s){if(s===void 0){s=null}return{type:2,steps:e,options:s}}function wc(e){return{type:6,styles:e,offset:null}}function gc(e){Promise.resolve(null).then(e)}var mc=function(){function e(e,s){if(e===void 0){e=0}if(s===void 0){s=0}this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+s}var s=e.prototype;s._onFinish=function e(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])};s.onStart=function e(s){this._onStartFns.push(s)};s.onDone=function e(s){this._onDoneFns.push(s)};s.onDestroy=function e(s){this._onDestroyFns.push(s)};s.hasStarted=function e(){return this._started};s.init=function e(){};s.play=function e(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0};s.triggerMicrotask=function e(){var s=this;gc(function(){return s._onFinish()})};s._onStart=function e(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]};s.pause=function e(){};s.restart=function e(){};s.finish=function e(){this._onFinish()};s.destroy=function e(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])};s.reset=function e(){};s.setPosition=function e(s){};s.getPosition=function e(){return 0};s.triggerCallback=function e(s){var r="start"==s?this._onStartFns:this._onDoneFns;r.forEach(function(e){return e()}),r.length=0};return e}();var pc=function(){function e(e){var s=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var r=0,n=0,a=0;var i=this.players.length;0==i?gc(function(){return s._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==i&&s._onFinish()}),e.onDestroy(function(){++n==i&&s._onDestroy()}),e.onStart(function(){++a==i&&s._onStart()})}),this.totalTime=this.players.reduce(function(e,s){return Math.max(e,s.totalTime)},0)}var s=e.prototype;s._onFinish=function e(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])};s.init=function e(){this.players.forEach(function(e){return e.init()})};s.onStart=function e(s){this._onStartFns.push(s)};s._onStart=function e(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])};s.onDone=function e(s){this._onDoneFns.push(s)};s.onDestroy=function e(s){this._onDestroyFns.push(s)};s.hasStarted=function e(){return this._started};s.play=function e(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})};s.pause=function e(){this.players.forEach(function(e){return e.pause()})};s.restart=function e(){this.players.forEach(function(e){return e.restart()})};s.finish=function e(){this._onFinish(),this.players.forEach(function(e){return e.finish()})};s.destroy=function e(){this._onDestroy()};s._onDestroy=function e(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])};s.reset=function e(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1};s.setPosition=function e(s){var r=s*this.totalTime;this.players.forEach(function(e){var s=e.totalTime?Math.min(1,r/e.totalTime):1;e.setPosition(s)})};s.getPosition=function e(){var s=0;return this.players.forEach(function(e){var r=e.getPosition();s=Math.min(r,s)}),s};s.beforeDestroy=function e(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})};s.triggerCallback=function e(s){var r="start"==s?this._onStartFns:this._onDoneFns;r.forEach(function(e){return e()}),r.length=0};return e}();var cc="!";function dc(e){return null!=e&&"false"!==""+e}function uc(e){return e instanceof pr?e.nativeElement:e}var vc;try{vc="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(bx){vc=!1}var Nc,kc=function(){var e=function e(s){this._platformId=s,this.isBrowser=this._platformId?this._platformId===Rl:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!vc)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.ngInjectableDef=ve({factory:function s(){return new e(Re(Wa,8))},token:e,providedIn:"root"}),e}();var xc=function e(){};var Ec=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fc(){if(Nc)return Nc;if("object"!=typeof document||!document)return Nc=new Set(Ec);var e=document.createElement("input");return Nc=new Set(Ec.filter(function(s){return e.setAttribute("type",s),e.type===s}))}var qc;function hc(e){return function(){if(null==qc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function e(){return qc=!0}}))}finally{qc=qc||!1}return qc}()?e:!!e.capture}var Fc=function(e){t(s,e);function s(s,r){return e.call(this)||this}var r=s.prototype;r.schedule=function e(s,r){if(r===void 0){r=0}return this};return s}(v);var yc=function(e){t(s,e);function s(s,r){var n;n=e.call(this,s,r)||this,n.scheduler=s,n.work=r,n.pending=!1;return n}var r=s.prototype;r.schedule=function e(s,r){if(r===void 0){r=0}if(this.closed)return this;this.state=s;var n=this.id,a=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(a,n,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(a,this.id,r),this};r.requestAsyncId=function e(s,r,n){if(n===void 0){n=0}return setInterval(s.flush.bind(s,this),n)};r.recycleAsyncId=function e(s,r,n){if(n===void 0){n=0}if(null!==n&&this.delay===n&&!1===this.pending)return r;clearInterval(r)};r.execute=function e(s,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(s,r);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};r._execute=function e(s,r){var n=!1,a=void 0;try{this.work(s)}catch(i){n=!0,a=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),a};r._unsubscribe=function e(){var s=this.id,r=this.scheduler,n=r.actions,a=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==a&&n.splice(a,1),null!=s&&(this.id=this.recycleAsyncId(r,s,null)),this.delay=null};return s}(Fc);var bc=function(){var e=function(){function e(s,r){if(r===void 0){r=e.now}this.SchedulerAction=s,this.now=r}var s=e.prototype;s.schedule=function e(s,r,n){if(r===void 0){r=0}return new this.SchedulerAction(this,s).schedule(n,r)};return e}();return e.now=function(){return Date.now()},e}();var Sc=function(e){t(s,e);function s(r,n){var a;if(n===void 0){n=bc.now}a=e.call(this,r,function(){return s.delegate&&s.delegate!==i(a)?s.delegate.now():n()})||this,a.actions=[],a.active=!1,a.scheduled=void 0;return a}var r=s.prototype;r.schedule=function r(n,a,i){if(a===void 0){a=0}return s.delegate&&s.delegate!==this?s.delegate.schedule(n,a,i):e.prototype.schedule.call(this,n,a,i)};r.flush=function e(s){var r=this.actions;if(this.active)return void r.push(s);var n;this.active=!0;do{if(n=s.execute(s.state,s.delay))break}while(s=r.shift());if(this.active=!1,n){for(;s=r.shift();){s.unsubscribe()}throw n}};return s}(bc);var Cc=new Sc(yc);var Tc=function(){function e(e,s){this.dueTime=e,this.scheduler=s}var s=e.prototype;s.call=function e(s,r){return r.subscribe(new Ac(s,this.dueTime,this.scheduler))};return e}();var Ac=function(e){t(s,e);function s(s,r,n){var a;a=e.call(this,s)||this,a.dueTime=r,a.scheduler=n,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1;return a}var r=s.prototype;r._next=function e(s){this.clearDebounce(),this.lastValue=s,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Dc,this.dueTime,this))};r._complete=function e(){this.debouncedNext(),this.destination.complete()};r.debouncedNext=function e(){if(this.clearDebounce(),this.hasValue){var s=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(s)}};r.clearDebounce=function e(){var s=this.debouncedSubscription;null!==s&&(this.remove(s),s.unsubscribe(),this.debouncedSubscription=null)};return s}(x);function Dc(e){e.debouncedNext()}function Bc(e,r){return function(e){t(n,e);s(n,[{key:"color",get:function e(){return this._color},set:function e(s){var n=s||r;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}]);function n(){var s;for(var n=arguments.length,a=new Array(n),i=0;i0&&this._control.errorState?"error":"hint"};n._animateAndLockLabel=function e(){var s=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,function e(s,r,n,a){return l(n)&&(a=n,n=void 0),a?e(s,r,n).pipe(V(function(e){return p(e)?a.apply(void 0,e):a(e)})):new y(function(e){!function e(s,r,n,a,i){var t;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(s)){var o=s;s.addEventListener(r,n,i),t=function e(){return o.removeEventListener(r,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(s)){var l=s;s.on(r,n),t=function e(){return l.off(r,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(s)){var _=s;s.addListener(r,n),t=function e(){return _.removeListener(r,n)}}else{if(!s||!s.length)throw new TypeError("Invalid event target");for(var w=0,g=s.length;w1?Array.prototype.slice.call(arguments):s)},e,n)})}(this._label.nativeElement,"transitionend").pipe(x_(1)).subscribe(function(){s._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())};n._validatePlaceholders=function e(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")};n._processHints=function e(){this._validateHints(),this._syncDescribedByIds()};n._validateHints=function e(){var s=this;if(this._hintChildren){var r,n;this._hintChildren.forEach(function(e){if("start"===e.align){if(r||s.hintLabel)throw Lc("start");r=e}else if("end"===e.align){if(n)throw Lc("end");n=e}})}};n._syncDescribedByIds=function e(){if(this._control){var s=[];if("hint"===this._getDisplayedMessages()){var r=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;r?s.push(r.id):this._hintLabel&&s.push(this._hintLabelId),n&&s.push(n.id)}else this._errorChildren&&(s=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(s)}};n._validateControlChild=function e(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")};n.updateOutlineGap=function e(){var s=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!s||!s.children.length||!s.textContent.trim())return;if(!this._platform.isBrowser)return;if(!document.documentElement.contains(this._elementRef.nativeElement))return void(this._outlineGapCalculationNeededImmediately=!0);var r=0,n=0;var a=this._connectionContainerRef.nativeElement,i=a.querySelectorAll(".mat-form-field-outline-start"),t=a.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=a.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var l=this._getStartEnd(o),_=this._getStartEnd(s.children[0].getBoundingClientRect());var w=0;for(var g=s.children,m=Array.isArray(g),p=0,g=m?g:g[Symbol.iterator]();;){var c;if(m){if(p>=g.length)break;c=g[p++]}else{p=g.next();if(p.done)break;c=p.value}var d=c;w+=d.offsetWidth}r=_-l-Gc,n=w>0?w*Vc+2*Gc:0}for(var u=0;u *";case":leave":return"* => void";case":increment":return function(e,s){return parseFloat(s)>parseFloat(e)};case":decrement":return function(e,s){return parseFloat(s) *"}}(e,r);if("function"==typeof n)return void s.push(n);e=n}var a=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return r.push('The provided transition expression "'+e+'" is not supported'),s;var i=a[1],t=a[2],o=a[3];s.push(ru(i,o)),"<"!=t[0]||i==Yd&&o==Yd||s.push(ru(o,i))}(e,r,s)}):r.push(e),r}var eu=new Set(["true","1"]),su=new Set(["false","0"]);function ru(e,s){var r=eu.has(e)||su.has(e),n=eu.has(s)||su.has(s);return function(a,i){var t=e==Yd||e==a,o=s==Yd||s==i;return!t&&r&&"boolean"==typeof a&&(t=a?eu.has(e):su.has(e)),!o&&n&&"boolean"==typeof i&&(o=i?eu.has(s):su.has(s)),t&&o}}var nu=":self",au=new RegExp("s*"+nu+"s*,?","g");function iu(e,s,r){return new ou(e).build(s,r)}var tu="";var ou=function(){function e(e){this._driver=e}var s=e.prototype;s.build=function e(s,r){var n=new lu(r);return this._resetContextStyleTimingState(n),Zd(this,Rd(s),n)};s._resetContextStyleTimingState=function e(s){s.currentQuerySelector=tu,s.collectedStyles={},s.collectedStyles[tu]={},s.currentTime=0};s.visitTrigger=function e(s,r){var n=this;var a=r.queryCount=0,i=r.depCount=0;var t=[],o=[];return"@"==s.name.charAt(0)&&r.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),s.definitions.forEach(function(e){if(n._resetContextStyleTimingState(r),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,t.push(n.visitState(s,r))}),s.name=l}else if(1==e.type){var _=n.visitTransition(e,r);a+=_.queryCount,i+=_.depCount,o.push(_)}else r.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:s.name,states:t,transitions:o,queryCount:a,depCount:i,options:null}};s.visitState=function e(s,r){var n=this.visitStyle(s.styles,r),a=s.options&&s.options.params||null;if(n.containsDynamicStyles){var i=new Set,t=a||{};if(n.styles.forEach(function(e){if(_u(e)){var s=e;Object.keys(s).forEach(function(e){jd(s[e]).forEach(function(e){t.hasOwnProperty(e)||i.add(e)})})}}),i.size){var o=Gd(i.values());r.errors.push('state("'+s.name+'", ...) must define default values for all the following style substitutions: '+o.join(", "))}}return{type:0,name:s.name,style:n,options:a?{params:a}:null}};s.visitTransition=function e(s,r){r.queryCount=0,r.depCount=0;var n=Zd(this,Rd(s.animation),r);return{type:1,matchers:Xd(s.expr,r.errors),animation:n,queryCount:r.queryCount,depCount:r.depCount,options:wu(s.options)}};s.visitSequence=function e(s,r){var n=this;return{type:2,steps:s.steps.map(function(e){return Zd(n,e,r)}),options:wu(s.options)}};s.visitGroup=function e(s,r){var n=this;var a=r.currentTime;var i=0;var t=s.steps.map(function(e){r.currentTime=a;var s=Zd(n,e,r);return i=Math.max(i,r.currentTime),s});return r.currentTime=i,{type:3,steps:t,options:wu(s.options)}};s.visitAnimate=function e(s,r){var n=function(e,s){var r=null;if(e.hasOwnProperty("duration"))r=e;else if("number"==typeof e)return gu(Ud(e,s).duration,0,"");var n=e;if(n.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var a=gu(0,0,"");return a.dynamic=!0,a.strValue=n,a}return gu((r=r||Ud(n,s)).duration,r.delay,r.easing)}(s.timings,r.errors);var a;r.currentAnimateTimings=n;var i=s.styles?s.styles:wc({});if(5==i.type)a=this.visitKeyframes(i,r);else{var t=s.styles,o=!1;if(!t){o=!0;var l={};n.easing&&(l.easing=n.easing),t=wc(l)}r.currentTime+=n.duration+n.delay;var _=this.visitStyle(t,r);_.isEmptyStep=o,a=_}return r.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}};s.visitStyle=function e(s,r){var n=this._makeStyleAst(s,r);return this._validateStyleAst(n,r),n};s._makeStyleAst=function e(s,r){var n=[];Array.isArray(s.styles)?s.styles.forEach(function(e){"string"==typeof e?e==lc?n.push(e):r.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(s.styles);var a=!1,i=null;return n.forEach(function(e){if(_u(e)){var s=e,r=s.easing;if(r&&(i=r,delete s.easing),!a)for(var n in s){if(s[n].toString().indexOf(Fd)>=0){a=!0;break}}}}),{type:6,styles:n,easing:i,offset:s.offset,containsDynamicStyles:a,options:null}};s._validateStyleAst=function e(s,r){var n=this;var a=r.currentAnimateTimings;var i=r.currentTime,t=r.currentTime;a&&t>0&&(t-=a.duration+a.delay),s.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(s){if(!n._driver.validateStyleProperty(s))return void r.errors.push('The provided animation property "'+s+'" is not a supported CSS property for animations');var a=r.collectedStyles[r.currentQuerySelector],o=a[s];var l=!0;o&&(t!=i&&t>=o.startTime&&i<=o.endTime&&(r.errors.push('The CSS property "'+s+'" that exists between the times of "'+o.startTime+'ms" and "'+o.endTime+'ms" is also being animated in a parallel animation between the times of "'+t+'ms" and "'+i+'ms"'),l=!1),t=o.startTime),l&&(a[s]={startTime:t,endTime:i}),r.options&&function(n,a,i){var t=r.options.params||{},o=jd(e[s]);o.length&&o.forEach(function(e){t.hasOwnProperty(e)||i.push("Unable to resolve the local animation param "+e+" in the given list of values")})}(0,0,r.errors)})})};s.visitKeyframes=function e(s,r){var n=this;var a={type:5,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push("keyframes() must be placed inside of a call to animate()"),a;var i=0;var t=[];var o=!1,l=!1,_=0;var w=s.steps.map(function(e){var s=n._makeStyleAst(e,r);var a=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;var s=null;if(Array.isArray(e))e.forEach(function(e){if(_u(e)&&e.hasOwnProperty("offset")){var r=e;s=parseFloat(r.offset),delete r.offset}});else if(_u(e)&&e.hasOwnProperty("offset")){var r=e;s=parseFloat(r.offset),delete r.offset}return s}(s.styles),w=0;return null!=a&&(i++,w=s.offset=a),l=l||w<0||w>1,o=o||w<_,_=w,t.push(w),s});l&&r.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&r.errors.push("Please ensure that all keyframe offsets are in order");var g=s.steps.length;var m=0;i>0&&i0?s==p?1:m*s:t[s],o=i*u;r.currentTime=c+d.delay+o,d.duration=o,n._validateStyleAst(e,r),e.offset=i,a.styles.push(e)}),a};s.visitReference=function e(s,r){return{type:8,animation:Zd(this,Rd(s.animation),r),options:wu(s.options)}};s.visitAnimateChild=function e(s,r){return r.depCount++,{type:9,options:wu(s.options)}};s.visitAnimateRef=function e(s,r){return{type:10,animation:this.visitReference(s.animation,r),options:wu(s.options)}};s.visitQuery=function e(s,r){var n=r.currentQuerySelector,a=s.options||{};r.queryCount++,r.currentQuery=s;var i=function(e){var s=!!e.split(/\s*,\s*/).find(function(e){return e==nu});return s&&(e=e.replace(au,"")),[e=e.replace(/@\*/g,Cd).replace(/@\w+/g,function(e){return Cd+"-"+e.substr(1)}).replace(/:animating/g,Ad),s]}(s.selector),t=i[0],o=i[1];r.currentQuerySelector=n.length?n+" "+t:t,_d(r.collectedStyles,r.currentQuerySelector,{});var l=Zd(this,Rd(s.animation),r);return r.currentQuery=null,r.currentQuerySelector=n,{type:11,selector:t,limit:a.limit||0,optional:!!a.optional,includeSelf:o,animation:l,originalSelector:s.selector,options:wu(s.options)}};s.visitStagger=function e(s,r){r.currentQuery||r.errors.push("stagger() can only be used inside of query()");var n="full"===s.timings?{duration:0,delay:0,easing:"full"}:Ud(s.timings,r.errors,!0);return{type:12,animation:Zd(this,Rd(s.animation),r),timings:n,options:null}};return e}();var lu=function e(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function _u(e){return!Array.isArray(e)&&"object"==typeof e}function wu(e){var s;return e?(e=Pd(e)).params&&(e.params=(s=e.params)?Pd(s):null):e={},e}function gu(e,s,r){return{duration:e,delay:s,easing:r}}function mu(e,s,r,n,a,i,t,o){if(t===void 0){t=null}if(o===void 0){o=!1}return{type:1,element:e,keyframes:s,preStyleProps:r,postStyleProps:n,duration:a,delay:i,totalTime:a+i,easing:t,subTimeline:o}}var pu=function(){function e(){this._map=new Map}var s=e.prototype;s.consume=function e(s){var r=this._map.get(s);return r?this._map.delete(s):r=[],r};s.append=function e(s,r){var n;var a=this._map.get(s);a||this._map.set(s,a=[]),(n=a).push.apply(n,r)};s.has=function e(s){return this._map.has(s)};s.clear=function e(){this._map.clear()};return e}();var cu=1,du=new RegExp(":enter","g"),uu=new RegExp(":leave","g");function vu(e,s,r,n,a,i,t,o,l,_){if(i===void 0){i={}}if(t===void 0){t={}}if(_===void 0){_=[]}return(new Nu).buildKeyframes(e,s,r,n,a,i,t,o,l,_)}var Nu=function(){function e(){}var s=e.prototype;s.buildKeyframes=function e(s,r,n,a,i,t,o,l,_,w){if(w===void 0){w=[]}_=_||new pu;var g=new xu(s,r,_,a,i,w,[]);g.options=l,g.currentTimeline.setStyles([t],null,g.errors,l),Zd(this,n,g);var m=g.timelines.filter(function(e){return e.containsAnimation()});if(m.length&&Object.keys(o).length){var p=m[m.length-1];p.allowOnlyTimelineStyles()||p.setStyles([o],null,g.errors,l)}return m.length?m.map(function(e){return e.buildKeyframes()}):[mu(r,[],[],[],0,0,"",!1)]};s.visitTrigger=function e(s,r){};s.visitState=function e(s,r){};s.visitTransition=function e(s,r){};s.visitAnimateChild=function e(s,r){var n=r.subInstructions.consume(r.element);if(n){var a=r.createSubContext(s.options),i=r.currentTimeline.currentTime,t=this._visitSubInstructions(n,a,a.options);i!=t&&r.transformIntoNewTimeline(t)}r.previousNode=s};s.visitAnimateRef=function e(s,r){var n=r.createSubContext(s.options);n.transformIntoNewTimeline(),this.visitReference(s.animation,n),r.transformIntoNewTimeline(n.currentTimeline.currentTime),r.previousNode=s};s._visitSubInstructions=function e(s,r,n){var a=r.currentTimeline.currentTime;var i=null!=n.duration?Dd(n.duration):null,t=null!=n.delay?Dd(n.delay):null;return 0!==i&&s.forEach(function(e){var s=r.appendInstructionToTimeline(e,i,t);a=Math.max(a,s.duration+s.delay)}),a};s.visitReference=function e(s,r){r.updateOptions(s.options,!0),Zd(this,s.animation,r),r.previousNode=s};s.visitSequence=function e(s,r){var n=this;var a=r.subContextCount;var i=r;var t=s.options;if(t&&(t.params||t.delay)&&((i=r.createSubContext(t)).transformIntoNewTimeline(),null!=t.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ku);var o=Dd(t.delay);i.delayNextStep(o)}s.steps.length&&(s.steps.forEach(function(e){return Zd(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>a&&i.transformIntoNewTimeline()),r.previousNode=s};s.visitGroup=function e(s,r){var n=this;var a=[];var i=r.currentTimeline.currentTime;var t=s.options&&s.options.delay?Dd(s.options.delay):0;s.steps.forEach(function(e){var o=r.createSubContext(s.options);t&&o.delayNextStep(t),Zd(n,e,o),i=Math.max(i,o.currentTimeline.currentTime),a.push(o.currentTimeline)}),a.forEach(function(e){return r.currentTimeline.mergeTimelineCollectedStyles(e)}),r.transformIntoNewTimeline(i),r.previousNode=s};s._visitTiming=function e(s,r){if(s.dynamic){var n=s.strValue;return Ud(r.params?Vd(n,r.params,r.errors):n,r.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}};s.visitAnimate=function e(s,r){var n=r.currentAnimateTimings=this._visitTiming(s.timings,r),a=r.currentTimeline;n.delay&&(r.incrementTime(n.delay),a.snapshotCurrentStyles());var i=s.style;5==i.type?this.visitKeyframes(i,r):(r.incrementTime(n.duration),this.visitStyle(i,r),a.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=s};s.visitStyle=function e(s,r){var n=r.currentTimeline,a=r.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=a&&a.easing||s.easing;s.isEmptyStep?n.applyEmptyStep(i):n.setStyles(s.styles,i,r.errors,r.options),r.previousNode=s};s.visitKeyframes=function e(s,r){var n=r.currentAnimateTimings,a=r.currentTimeline.duration,i=n.duration,t=r.createSubContext().currentTimeline;t.easing=n.easing,s.styles.forEach(function(e){t.forwardTime((e.offset||0)*i),t.setStyles(e.styles,e.easing,r.errors,r.options),t.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(t),r.transformIntoNewTimeline(a+i),r.previousNode=s};s.visitQuery=function e(s,r){var n=this;var a=r.currentTimeline.currentTime,i=s.options||{},t=i.delay?Dd(i.delay):0;t&&(6===r.previousNode.type||0==a&&r.currentTimeline.getCurrentStyleProperties().length)&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ku);var o=a;var l=r.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!i.optional,r.errors);r.currentQueryTotal=l.length;var _=null;l.forEach(function(e,a){r.currentQueryIndex=a;var i=r.createSubContext(s.options,e);t&&i.delayNextStep(t),e===r.element&&(_=i.currentTimeline),Zd(n,s.animation,i),i.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,i.currentTimeline.currentTime)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(o),_&&(r.currentTimeline.mergeTimelineCollectedStyles(_),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=s};s.visitStagger=function e(s,r){var n=r.parentContext,a=r.currentTimeline,i=s.timings,t=Math.abs(i.duration),o=t*(r.currentQueryTotal-1);var l=t*r.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=o-l;break;case"full":l=n.currentStaggerTime}var _=r.currentTimeline;l&&_.delayNextStep(l);var w=_.currentTime;Zd(this,s.animation,r),r.previousNode=s,n.currentStaggerTime=a.currentTime-w+(a.startTime-n.currentTimeline.startTime)};return e}();var ku={};var xu=function(){function e(e,s,r,n,a,i,t,o){this._driver=e,this.element=s,this.subInstructions=r,this._enterClassName=n,this._leaveClassName=a,this.errors=i,this.timelines=t,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ku,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new Eu(this._driver,s,0),t.push(this.currentTimeline)}var r=e.prototype;r.updateOptions=function e(s,r){var n=this;if(!s)return;var a=s;var i=this.options;null!=a.duration&&(i.duration=Dd(a.duration)),null!=a.delay&&(i.delay=Dd(a.delay));var t=a.params;if(t){var o=i.params;o||(o=this.options.params={}),Object.keys(t).forEach(function(e){r&&o.hasOwnProperty(e)||(o[e]=Vd(t[e],o,n.errors))})}};r._copyOptions=function e(){var s={};if(this.options){var r=this.options.params;if(r){var n=s.params={};Object.keys(r).forEach(function(e){n[e]=r[e]})}}return s};r.createSubContext=function s(r,n,a){if(r===void 0){r=null}var i=n||this.element,t=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,a||0));return t.previousNode=this.previousNode,t.currentAnimateTimings=this.currentAnimateTimings,t.options=this._copyOptions(),t.updateOptions(r),t.currentQueryIndex=this.currentQueryIndex,t.currentQueryTotal=this.currentQueryTotal,t.parentContext=this,this.subContextCount++,t};r.transformIntoNewTimeline=function e(s){return this.previousNode=ku,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline};r.appendInstructionToTimeline=function e(s,r,n){var a={duration:null!=r?r:s.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+s.delay,easing:""},i=new fu(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,a,s.stretchStartingKeyframe);return this.timelines.push(i),a};r.incrementTime=function e(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)};r.delayNextStep=function e(s){s>0&&this.currentTimeline.delayNextStep(s)};r.invokeQuery=function e(s,r,n,a,i,t){var o=[];if(a&&o.push(this.element),s.length>0){s=(s=s.replace(du,"."+this._enterClassName)).replace(uu,"."+this._leaveClassName);var l=this._driver.query(this.element,s,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),o.push.apply(o,l)}return i||0!=o.length||t.push('`query("'+r+'")` returned zero elements. (Use `query("'+r+'", { optional: true })` if you wish to allow this.)'),o};s(e,[{key:"params",get:function e(){return this.options.params}}]);return e}();var Eu=function(){function e(e,s,r,n){this._driver=e,this.element=s,this.startTime=r,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(s),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(s,this._localTimelineStyles)),this._loadKeyframe()}var r=e.prototype;r.containsAnimation=function e(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}};r.getCurrentStyleProperties=function e(){return Object.keys(this._currentKeyframe)};r.delayNextStep=function e(s){var r=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||r?(this.forwardTime(this.currentTime+s),r&&this.snapshotCurrentStyles()):this.startTime+=s};r.fork=function s(r,n){return this.applyStylesToKeyframe(),new e(this._driver,r,n||this.currentTime,this._elementTimelineStylesLookup)};r._loadKeyframe=function e(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))};r.forwardFrame=function e(){this.duration+=cu,this._loadKeyframe()};r.forwardTime=function e(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()};r._updateStyle=function e(s,r){this._localTimelineStyles[s]=r,this._globalTimelineStyles[s]=r,this._styleSummary[s]={time:this.currentTime,value:r}};r.allowOnlyTimelineStyles=function e(){return this._currentEmptyStepKeyframe!==this._currentKeyframe};r.applyEmptyStep=function e(s){var r=this;s&&(this._previousKeyframe.easing=s),Object.keys(this._globalTimelineStyles).forEach(function(e){r._backFill[e]=r._globalTimelineStyles[e]||lc,r._currentKeyframe[e]=lc}),this._currentEmptyStepKeyframe=this._currentKeyframe};r.setStyles=function e(s,r,n,a){var i=this;r&&(this._previousKeyframe.easing=r);var t=a&&a.params||{},o=function(e,s){var r={};var n;return e.forEach(function(e){"*"===e?(n=n||Object.keys(s)).forEach(function(e){r[e]=lc}):Kd(e,!1,r)}),r}(s,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var s=Vd(o[e],t,n);i._pendingStyles[e]=s,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:lc),i._updateStyle(e,s)})};r.applyStylesToKeyframe=function e(){var s=this;var r=this._pendingStyles,n=Object.keys(r);0!=n.length&&(this._pendingStyles={},n.forEach(function(e){s._currentKeyframe[e]=r[e]}),Object.keys(this._localTimelineStyles).forEach(function(e){s._currentKeyframe.hasOwnProperty(e)||(s._currentKeyframe[e]=s._localTimelineStyles[e])}))};r.snapshotCurrentStyles=function e(){var s=this;Object.keys(this._localTimelineStyles).forEach(function(e){var r=s._localTimelineStyles[e];s._pendingStyles[e]=r,s._updateStyle(e,r)})};r.getFinalKeyframe=function e(){return this._keyframes.get(this.duration)};r.mergeTimelineCollectedStyles=function e(s){var r=this;Object.keys(s._styleSummary).forEach(function(e){var n=r._styleSummary[e],a=s._styleSummary[e];(!n||a.time>n.time)&&r._updateStyle(e,a.value)})};r.buildKeyframes=function e(){var s=this;this.applyStylesToKeyframe();var r=new Set,n=new Set,a=1===this._keyframes.size&&0===this.duration;var i=[];this._keyframes.forEach(function(e,t){var o=Kd(e,!0);Object.keys(o).forEach(function(e){var s=o[e];s==cc?r.add(e):s==lc&&n.add(e)}),a||(o.offset=t/s.duration),i.push(o)});var t=r.size?Gd(r.values()):[],o=n.size?Gd(n.values()):[];if(a){var l=i[0],_=Pd(l);l.offset=0,_.offset=1,i=[l,_]}return mu(this.element,i,t,o,this.duration,this.startTime,this.easing,!1)};s(e,[{key:"currentTime",get:function e(){return this.startTime+this.duration}},{key:"properties",get:function e(){var s=[];for(var r in this._currentKeyframe){s.push(r)}return s}}]);return e}();var fu=function(e){t(s,e);function s(s,r,n,a,i,t,o){var l;if(o===void 0){o=!1}l=e.call(this,s,r,t.delay)||this,l.element=r,l.keyframes=n,l.preStyleProps=a,l.postStyleProps=i,l._stretchStartingKeyframe=o,l.timings={duration:t.duration,delay:t.delay,easing:t.easing};return l}var r=s.prototype;r.containsAnimation=function e(){return this.keyframes.length>1};r.buildKeyframes=function e(){var s=this.keyframes,r=this.timings,n=r.delay,a=r.duration,i=r.easing;if(this._stretchStartingKeyframe&&n){var t=[],o=a+n,l=n/o,_=Kd(s[0],!1);_.offset=0,t.push(_);var w=Kd(s[0],!1);w.offset=qu(l),t.push(w);var g=s.length-1;for(var m=1;m<=g;m++){var p=Kd(s[m],!1);p.offset=qu((n+p.offset*a)/o),t.push(p)}a=o,n=0,i="",s=t}return mu(this.element,s,this.preStyleProps,this.postStyleProps,a,n,i,!0)};return s}(Eu);function qu(e,s){if(s===void 0){s=3}var r=Math.pow(10,s-1);return Math.round(e*r)/r}var hu=function e(){};var Fu=function(e){t(s,e);function s(){return e.apply(this,arguments)||this}var r=s.prototype;r.normalizePropertyName=function e(s,r){return zd(s)};r.normalizeStyleValue=function e(s,r,n,a){var i="";var t=n.toString().trim();if(yu[r]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&a.push("Please provide a CSS unit value for "+s+":"+n)}return t+i};return s}(hu);var yu=function(){return function(e){var s={};return e.forEach(function(e){return s[e]=!0}),s}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function bu(e,s,r,n,a,i,t,o,l,_,w,g,m){return{type:0,element:e,triggerName:s,isRemovalTransition:a,fromState:r,fromStyles:i,toState:n,toStyles:t,timelines:o,queriedElements:l,preStyleProps:_,postStyleProps:w,totalTime:g,errors:m}}var Su={};var Cu=function(){function e(e,s,r){this._triggerName=e,this.ast=s,this._stateStyles=r}var s=e.prototype;s.match=function e(s,r,n,a){return function(e,s,r,n,a){return e.some(function(e){return e(s,r,n,a)})}(this.ast.matchers,s,r,n,a)};s.buildStyles=function e(s,r,n){var a=this._stateStyles["*"],i=this._stateStyles[s],t=a?a.buildStyles(r,n):{};return i?i.buildStyles(r,n):t};s.build=function e(s,r,n,a,i,t,o,l,_,w){var g=[],m=this.ast.options&&this.ast.options.params||Su,p=this.buildStyles(n,o&&o.params||Su,g),c=l&&l.params||Su,d=this.buildStyles(a,c,g),u=new Set,v=new Map,N=new Map,k="void"===a,x={params:Object.assign({},m,c)},E=w?[]:vu(s,r,this.ast.animation,i,t,p,d,x,_,g);var f=0;if(E.forEach(function(e){f=Math.max(e.duration+e.delay,f)}),g.length)return bu(r,this._triggerName,n,a,k,p,d,[],[],v,N,f,g);E.forEach(function(e){var s=e.element,n=_d(v,s,{});e.preStyleProps.forEach(function(e){return n[e]=!0});var a=_d(N,s,{});e.postStyleProps.forEach(function(e){return a[e]=!0}),s!==r&&u.add(s)});var q=Gd(u.values());return bu(r,this._triggerName,n,a,k,p,d,E,q,v,N,f)};return e}();var Tu=function(){function e(e,s){this.styles=e,this.defaultParams=s}var s=e.prototype;s.buildStyles=function e(s,r){var n={},a=Pd(this.defaultParams);return Object.keys(s).forEach(function(e){var r=s[e];null!=r&&(a[e]=r)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var s=e;Object.keys(s).forEach(function(e){var i=s[e];i.length>1&&(i=Vd(i,a,r)),n[e]=i})}}),n};return e}();var Au=function(){function e(e,s){var r=this;this.name=e,this.ast=s,this.transitionFactories=[],this.states={},s.states.forEach(function(e){r.states[e.name]=new Tu(e.style,e.options&&e.options.params||{})}),Du(this.states,"true","1"),Du(this.states,"false","0"),s.transitions.forEach(function(s){r.transitionFactories.push(new Cu(e,s,r.states))}),this.fallbackTransition=new Cu(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,s){return!0}],options:null,queryCount:0,depCount:0},this.states)}var r=e.prototype;r.matchTransition=function e(s,r,n,a){return this.transitionFactories.find(function(e){return e.match(s,r,n,a)})||null};r.matchStyles=function e(s,r,n){return this.fallbackTransition.buildStyles(s,r,n)};s(e,[{key:"containsQueries",get:function e(){return this.ast.queryCount>0}}]);return e}();function Du(e,s,r){e.hasOwnProperty(s)?e.hasOwnProperty(r)||(e[r]=e[s]):e.hasOwnProperty(r)&&(e[s]=e[r])}var Bu=new pu;var Uu=function(){function e(e,s,r){this.bodyNode=e,this._driver=s,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}var s=e.prototype;s.register=function e(s,r){var n=[],a=iu(this._driver,r,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[s]=a};s._buildPlayer=function e(s,r,n){var a=s.element,i=id(0,this._normalizer,0,s.keyframes,r,n);return this._driver.animate(a,i,s.duration,s.delay,s.easing,[],!0)};s.create=function e(s,r,n){var a=this;if(n===void 0){n={}}var i=[],t=this._animations[s];var o;var l=new Map;if(t?(o=vu(this._driver,r,t,yd,bd,{},{},n,Bu,i)).forEach(function(e){var s=_d(l,e.element,{});e.postStyleProps.forEach(function(e){return s[e]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));l.forEach(function(e,s){Object.keys(e).forEach(function(r){e[r]=a._driver.computeStyle(s,r,lc)})});var _=ad(o.map(function(e){var s=l.get(e.element);return a._buildPlayer(e,{},s)}));return this._playersById[s]=_,_.onDestroy(function(){return a.destroy(s)}),this.players.push(_),_};s.destroy=function e(s){var r=this._getPlayer(s);r.destroy(),delete this._playersById[s];var n=this.players.indexOf(r);n>=0&&this.players.splice(n,1)};s._getPlayer=function e(s){var r=this._playersById[s];if(!r)throw new Error("Unable to find the timeline player referenced by "+s);return r};s.listen=function e(s,r,n,a){var i=ld(r,"","","");return td(this._getPlayer(s),n,i,a),function(){}};s.command=function e(s,r,n,a){if("register"==n)return void this.register(s,a[0]);if("create"==n)return void this.create(s,r,a[0]||{});var i=this._getPlayer(s);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(s)}};return e}();var Pu="ng-animate-queued",Ku=".ng-animate-queued",Iu="ng-animate-disabled",Ju=".ng-animate-disabled",Mu="ng-star-inserted",Ou=".ng-star-inserted",Ru=[],Lu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ju={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vu="__ng_removed";var Gu=function(){function e(e,s){if(s===void 0){s=""}this.namespaceId=s;var r=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(r?e.value:e),r){var n=Pd(e);delete n.value,this.options=n}else this.options={};this.options.params||(this.options.params={})}var r=e.prototype;r.absorbOptions=function e(s){var r=s.params;if(r){var n=this.options.params;Object.keys(r).forEach(function(e){null==n[e]&&(n[e]=r[e])})}};s(e,[{key:"params",get:function e(){return this.options.params}}]);return e}();var Hu="void",zu=new Gu(Hu);var Wu=function(){function e(e,s,r){this.id=e,this.hostElement=s,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,rv(s,this._hostClassName)}var s=e.prototype;s.listen=function e(s,r,n,a){var i=this;if(!this._triggers.hasOwnProperty(r))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+r+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+r+'" because the provided event is undefined!');if("start"!=(t=n)&&"done"!=t)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+r+'" is not supported!');var t;var o=_d(this._elementListeners,s,[]),l={name:r,phase:n,callback:a};o.push(l);var _=_d(this._engine.statesByElement,s,{});return _.hasOwnProperty(r)||(rv(s,Sd),rv(s,Sd+"-"+r),_[r]=zu),function(){i._engine.afterFlush(function(){var e=o.indexOf(l);e>=0&&o.splice(e,1),i._triggers[r]||delete _[r]})}};s.register=function e(s,r){return!this._triggers[s]&&(this._triggers[s]=r,!0)};s._getTrigger=function e(s){var r=this._triggers[s];if(!r)throw new Error('The provided animation trigger "'+s+'" has not been registered!');return r};s.trigger=function e(s,r,n,a){var i=this;if(a===void 0){a=!0}var e=this._getTrigger(r),t=new Zu(this.id,r,s);var o=this._engine.statesByElement.get(s);o||(rv(s,Sd),rv(s,Sd+"-"+r),this._engine.statesByElement.set(s,o={}));var l=o[r];var _=new Gu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&_.absorbOptions(l.options),o[r]=_,l||(l=zu),_.value!==Hu&&l.value===_.value){if(!function(e,s){var r=Object.keys(e),n=Object.keys(s);if(r.length!=n.length)return!1;for(var a=0;a=0&&i.players.splice(e,1);var r=i._engine.playersByElement.get(s);if(r){var n=r.indexOf(t);n>=0&&r.splice(n,1)}}),this.players.push(t),p.push(t),t};s.deregister=function e(s){var r=this;delete this._triggers[s],this._engine.statesByElement.forEach(function(e,r){delete e[s]}),this._elementListeners.forEach(function(e,n){r._elementListeners.set(n,e.filter(function(e){return e.name!=s}))})};s.clearElementCache=function e(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);var r=this._engine.playersByElement.get(s);r&&(r.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(s))};s._signalRemovalForInnerTriggers=function e(s,r,n){var a=this;if(n===void 0){n=!1}this._engine.driver.query(s,Cd,!0).forEach(function(e){if(e[Vu])return;var s=a._engine.fetchNamespacesByElement(e);s.size?s.forEach(function(s){return s.triggerLeaveAnimation(e,r,!1,!0)}):a.clearElementCache(e)})};s.triggerLeaveAnimation=function e(s,r,n,a){var i=this;var t=this._engine.statesByElement.get(s);if(t){var o=[];if(Object.keys(t).forEach(function(e){if(i._triggers[e]){var r=i.trigger(s,e,Hu,a);r&&o.push(r)}}),o.length)return this._engine.markElementAsRemoved(this.id,s,!0,r),n&&ad(o).onDone(function(){return i._engine.processLeaveNode(s)}),!0}return!1};s.prepareLeaveAnimationListeners=function e(s){var r=this;var n=this._elementListeners.get(s);if(n){var a=new Set;n.forEach(function(e){var n=e.name;if(a.has(n))return;a.add(n);var i=r._triggers[n].fallbackTransition,t=r._engine.statesByElement.get(s)[n]||zu,o=new Gu(Hu),l=new Zu(r.id,n,s);r._engine.totalQueuedPlayers++,r._queue.push({element:s,triggerName:n,transition:i,fromState:t,toState:o,player:l,isFallbackTransition:!0})})}};s.removeNode=function e(s,r){var n=this;var a=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,r,!0),this.triggerLeaveAnimation(s,r,!0))return;var i=!1;if(a.totalAnimations){var t=a.players.length?a.playersByQueriedElement.get(s):[];if(t&&t.length)i=!0;else{var o=s;for(;o=o.parentNode;){if(a.statesByElement.get(o)){i=!0;break}}}}this.prepareLeaveAnimationListeners(s),i?a.markElementAsRemoved(this.id,s,!1,r):(a.afterFlush(function(){return n.clearElementCache(s)}),a.destroyInnerAnimations(s),a._onRemovalComplete(s,r))};s.insertNode=function e(s,r){rv(s,this._hostClassName)};s.drainQueuedTransitions=function e(s){var r=this;var n=[];return this._queue.forEach(function(e){var a=e.player;if(a.destroyed)return;var i=e.element,t=r._elementListeners.get(i);t&&t.forEach(function(r){if(r.name==e.triggerName){var n=ld(i,e.triggerName,e.fromState.value,e.toState.value);n._data=s,td(e.player,r.phase,n,r.callback)}}),a.markedForDestroy?r._engine.afterFlush(function(){a.destroy()}):n.push(e)}),this._queue=[],n.sort(function(e,s){var n=e.transition.ast.depCount,a=s.transition.ast.depCount;return 0==n||0==a?n-a:r._engine.driver.containsElement(e.element,s.element)?1:-1})};s.destroy=function e(s){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,s)};s.elementContainsData=function e(s){var r=!1;return this._elementListeners.has(s)&&(r=!0),!!this._queue.find(function(e){return e.element===s})||r};return e}();var Qu=function(){function e(e,s,r){this.bodyNode=e,this.driver=s,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,s){}}var r=e.prototype;r._onRemovalComplete=function e(s,r){this.onRemovalComplete(s,r)};r.createNamespace=function e(s,r){var n=new Wu(s,r,this);return r.parentNode?this._balanceNamespaceList(n,r):(this.newHostElements.set(r,n),this.collectEnterElement(r)),this._namespaceLookup[s]=n};r._balanceNamespaceList=function e(s,r){var n=this._namespaceList.length-1;if(n>=0){var a=!1;for(var i=n;i>=0;i--){if(this.driver.containsElement(this._namespaceList[i].hostElement,r)){this._namespaceList.splice(i+1,0,s),a=!0;break}}a||this._namespaceList.splice(0,0,s)}else this._namespaceList.push(s);return this.namespacesByHostElement.set(r,s),s};r.register=function e(s,r){var n=this._namespaceLookup[s];return n||(n=this.createNamespace(s,r)),n};r.registerTrigger=function e(s,r,n){var a=this._namespaceLookup[s];a&&a.register(r,n)&&this.totalAnimations++};r.destroy=function e(s,r){var n=this;if(!s)return;var a=this._fetchNamespace(s);this.afterFlush(function(){n.namespacesByHostElement.delete(a.hostElement),delete n._namespaceLookup[s];var e=n._namespaceList.indexOf(a);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(r)})};r._fetchNamespace=function e(s){return this._namespaceLookup[s]};r.fetchNamespacesByElement=function e(s){var r=new Set,n=this.statesByElement.get(s);if(n){var a=Object.keys(n);for(var i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(s){var o=this._fetchNamespace(s);o&&o.insertNode(r,n)}a&&this.collectEnterElement(r)};r.collectEnterElement=function e(s){this.collectedEnterElements.push(s)};r.markElementAsDisabled=function e(s,r){r?this.disabledNodes.has(s)||(this.disabledNodes.add(s),rv(s,Iu)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),nv(s,Iu))};r.removeNode=function e(s,r,n,a){if($u(r)){var i=s?this._fetchNamespace(s):null;if(i?i.removeNode(r,a):this.markElementAsRemoved(s,r,!1,a),n){var t=this.namespacesByHostElement.get(r);t&&t.id!==s&&t.removeNode(r,a)}}else this._onRemovalComplete(r,a)};r.markElementAsRemoved=function e(s,r,n,a){this.collectedLeaveElements.push(r),r[Vu]={namespaceId:s,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1}};r.listen=function e(s,r,n,a,i){return $u(r)?this._fetchNamespace(s).listen(r,n,a,i):function(){}};r._buildInstruction=function e(s,r,n,a,i){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,n,a,s.fromState.options,s.toState.options,r,i)};r.destroyInnerAnimations=function e(s){var r=this;var n=this.driver.query(s,Cd,!0);n.forEach(function(e){return r.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(s,Ad,!0)).forEach(function(e){return r.finishActiveQueriedAnimationOnElement(e)})};r.destroyActiveAnimationsForElement=function e(s){var r=this.playersByElement.get(s);r&&r.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})};r.finishActiveQueriedAnimationOnElement=function e(s){var r=this.playersByQueriedElement.get(s);r&&r.forEach(function(e){return e.finish()})};r.whenRenderingDone=function e(){var s=this;return new Promise(function(e){if(s.players.length)return ad(s.players).onDone(function(){return e()});e()})};r.processLeaveNode=function e(s){var r=this;var n=s[Vu];if(n&&n.setForRemoval){if(s[Vu]=Lu,n.namespaceId){this.destroyInnerAnimations(s);var a=this._fetchNamespace(n.namespaceId);a&&a.clearElementCache(s)}this._onRemovalComplete(s,n.setForRemoval)}this.driver.matchesElement(s,Ju)&&this.markElementAsDisabled(s,!1),this.driver.query(s,Ju,!0).forEach(function(e){r.markElementAsDisabled(e,!1)})};r.flush=function e(s){var r=this;if(s===void 0){s=-1}var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,s){return r._balanceNamespaceList(e,s)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;b--){this._namespaceList[b].drainQueuedTransitions(r).forEach(function(e){var s=e.player,r=e.element;if(F.push(s),n.collectedEnterElements.length){var t=r[Vu];if(t&&t.setForMove)return void s.destroy()}var g=!m||!n.driver.containsElement(m,r),p=q.get(r),c=d.get(r),u=n._buildInstruction(e,a,c,p,g);if(!u.errors||!u.errors.length)return g?(s.onStart(function(){return Od(r,u.fromStyles)}),s.onDestroy(function(){return Md(r,u.toStyles)}),void i.push(s)):e.isFallbackTransition?(s.onStart(function(){return Od(r,u.fromStyles)}),s.onDestroy(function(){return Md(r,u.toStyles)}),void i.push(s)):(u.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),a.append(r,u.timelines),o.push({instruction:u,player:s,element:r}),u.queriedElements.forEach(function(e){return _d(l,e,[]).push(s)}),u.preStyleProps.forEach(function(e,s){var r=Object.keys(e);if(r.length){var n=_.get(s);n||_.set(s,n=new Set),r.forEach(function(e){return n.add(e)})}}),void u.postStyleProps.forEach(function(e,s){var r=Object.keys(e);var n=w.get(s);n||w.set(s,n=new Set),r.forEach(function(e){return n.add(e)})}));y.push(u)})}if(y.length){var S=[];y.forEach(function(e){S.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return S.push("- "+e+"\n")})}),F.forEach(function(e){return e.destroy()}),this.reportError(S)}var C=new Map,T=new Map;o.forEach(function(e){var s=e.element;a.has(s)&&(T.set(s,s),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),i.forEach(function(e){var s=e.element;n._getPreviousPlayers(s,!1,e.namespaceId,e.triggerName,null).forEach(function(e){_d(C,s,[]).push(e),e.destroy()})});var A=v.filter(function(e){return iv(e,_,w)}),D=new Map;Xu(D,this.driver,k,w,lc).forEach(function(e){iv(e,_,w)&&A.push(e)});var B=new Map;c.forEach(function(e,s){Xu(B,n.driver,new Set(e),_,cc)}),A.forEach(function(e){var s=D.get(e),r=B.get(e);D.set(e,Object.assign({},s,r))});var U=[],P=[],K={};o.forEach(function(e){var s=e.element,r=e.player,o=e.instruction;if(a.has(s)){if(g.has(s))return r.onDestroy(function(){return Md(s,o.toStyles)}),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);var l=K;if(T.size>1){var _=s;var w=[];for(;_=_.parentNode;){var m=T.get(_);if(m){l=m;break}w.push(_)}w.forEach(function(e){return T.set(e,l)})}var p=n._buildAnimation(r.namespaceId,o,C,t,B,D);if(r.setRealPlayer(p),l===K)U.push(r);else{var c=n.playersByElement.get(l);c&&c.length&&(r.parentPlayer=ad(c)),i.push(r)}}else Od(s,o.fromStyles),r.onDestroy(function(){return Md(s,o.toStyles)}),P.push(r),g.has(s)&&i.push(r)}),P.forEach(function(e){var s=t.get(e.element);if(s&&s.length){var r=ad(s);e.setRealPlayer(r)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var I=0;I=_.length)return"break";m=_[g++]}else{g=_.next();if(g.done)return"break";m=g.value}var s=m;var l=s.element,p=l!==i,c=_d(n,l,[]);a._getPreviousPlayers(l,p,t,o,r.toState).forEach(function(e){var s=e.getRealPlayer();s.beforeDestroy&&s.beforeDestroy(),e.destroy(),c.push(e)})};for(var _=r.timelines,w=Array.isArray(_),g=0,_=w?_:_[Symbol.iterator]();;){var m;var p=l();if(p==="break")break}Od(i,r.fromStyles)};r._buildAnimation=function e(s,r,n,a,i,t){var o=this;var l=r.triggerName,_=r.element,w=[],g=new Set,m=new Set,p=r.timelines.map(function(e){var r=e.element;g.add(r);var p=r[Vu];if(p&&p.removedBeforeQueried)return new mc(e.duration,e.delay);var c=r!==_,d=function(e){var s=[];return function e(s,r){for(var n=0;n0?this.driver.animate(s.element,r,s.duration,s.delay,s.easing,n):new mc(s.duration,s.delay)};s(e,[{key:"queuedPlayers",get:function e(){var s=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&s.push(e)})}),s}}]);return e}();var Zu=function(){function e(e,s,r){this.namespaceId=e,this.triggerName=s,this.element=r,this._player=new mc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}var s=e.prototype;s.setRealPlayer=function e(s){var r=this;this._containsRealPlayer||(this._player=s,Object.keys(this._queuedCallbacks).forEach(function(e){r._queuedCallbacks[e].forEach(function(r){return td(s,e,void 0,r)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)};s.getRealPlayer=function e(){return this._player};s.overrideTotalTime=function e(s){this.totalTime=s};s.syncPlayerEvents=function e(s){var r=this;var n=this._player;n.triggerCallback&&s.onStart(function(){return n.triggerCallback("start")}),s.onDone(function(){return r.finish()}),s.onDestroy(function(){return r.destroy()})};s._queueEvent=function e(s,r){_d(this._queuedCallbacks,s,[]).push(r)};s.onDone=function e(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)};s.onStart=function e(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)};s.onDestroy=function e(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)};s.init=function e(){this._player.init()};s.hasStarted=function e(){return!this.queued&&this._player.hasStarted()};s.play=function e(){!this.queued&&this._player.play()};s.pause=function e(){!this.queued&&this._player.pause()};s.restart=function e(){!this.queued&&this._player.restart()};s.finish=function e(){this._player.finish()};s.destroy=function e(){this.destroyed=!0,this._player.destroy()};s.reset=function e(){!this.queued&&this._player.reset()};s.setPosition=function e(s){this.queued||this._player.setPosition(s)};s.getPosition=function e(){return this.queued?0:this._player.getPosition()};s.triggerCallback=function e(s){var r=this._player;r.triggerCallback&&r.triggerCallback(s)};return e}();function $u(e){return e&&1===e.nodeType}function Yu(e,s){var r=e.style.display;return e.style.display=null!=s?s:"none",r}function Xu(e,s,r,n,a){var i=[];r.forEach(function(e){return i.push(Yu(e))});var t=[];n.forEach(function(r,n){var i={};r.forEach(function(e){var r=i[e]=s.computeStyle(n,e,a);r&&0!=r.length||(n[Vu]=ju,t.push(n))}),e.set(n,i)});var o=0;return r.forEach(function(e){return Yu(e,i[o++])}),t}function ev(e,s){var r=new Map;if(e.forEach(function(e){return r.set(e,[])}),0==s.length)return r;var n=new Set(s),a=new Map;return s.forEach(function(e){var s=function e(s){if(!s)return 1;var i=a.get(s);if(i)return i;var t=s.parentNode;return i=r.has(t)?t:n.has(t)?1:e(t),a.set(s,i),i}(e);1!==s&&r.get(s).push(e)}),r}var sv="$$classes";function rv(e,s){if(e.classList)e.classList.add(s);else{var r=e[sv];r||(r=e[sv]={}),r[s]=!0}}function nv(e,s){if(e.classList)e.classList.remove(s);else{var r=e[sv];r&&delete r[s]}}function av(e,s,r){ad(r).onDone(function(){return e.processLeaveNode(s)})}function iv(e,s,r){var n=r.get(e);if(!n)return!1;var a=s.get(e);return a?n.forEach(function(e){return a.add(e)}):s.set(e,n),r.delete(e),!0}var tv=function(){function e(e,s,r){var n=this;this.bodyNode=e,this._driver=s,this._triggerCache={},this.onRemovalComplete=function(e,s){},this._transitionEngine=new Qu(e,s,r),this._timelineEngine=new Uu(e,s,r),this._transitionEngine.onRemovalComplete=function(e,s){return n.onRemovalComplete(e,s)}}var r=e.prototype;r.registerTrigger=function e(s,r,n,a,i){var t=s+"-"+a;var o=this._triggerCache[t];if(!o){var l=[],_=iu(this._driver,i,l);if(l.length)throw new Error('The animation trigger "'+a+'" has failed to build due to the following errors:\n - '+l.join("\n - "));o=function(e,s){return new Au(e,s)}(a,_),this._triggerCache[t]=o}this._transitionEngine.registerTrigger(r,a,o)};r.register=function e(s,r){this._transitionEngine.register(s,r)};r.destroy=function e(s,r){this._transitionEngine.destroy(s,r)};r.onInsert=function e(s,r,n,a){this._transitionEngine.insertNode(s,r,n,a)};r.onRemove=function e(s,r,n,a){this._transitionEngine.removeNode(s,r,a||!1,n)};r.disableAnimations=function e(s,r){this._transitionEngine.markElementAsDisabled(s,r)};r.process=function e(s,r,n,a){if("@"==n.charAt(0)){var i=wd(n),t=i[0],o=i[1];this._timelineEngine.command(t,r,o,a)}else this._transitionEngine.trigger(s,r,n,a)};r.listen=function e(s,r,n,a,i){if("@"==n.charAt(0)){var t=wd(n),o=t[0],l=t[1];return this._timelineEngine.listen(o,r,l,i)}return this._transitionEngine.listen(s,r,n,a,i)};r.flush=function e(s){if(s===void 0){s=-1}this._transitionEngine.flush(s)};r.whenRenderingDone=function e(){return this._transitionEngine.whenRenderingDone()};s(e,[{key:"players",get:function e(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]);return e}();function ov(e,s){var r=null,n=null;return Array.isArray(s)&&s.length?(r=_v(s[0]),s.length>1&&(n=_v(s[s.length-1]))):s&&(r=_v(s)),r||n?new lv(e,r,n):null}var lv=function(){var e=function(){function e(s,r,n){this._element=s,this._startStyles=r,this._endStyles=n,this._state=0;var a=e.initialStylesByElement.get(s);a||e.initialStylesByElement.set(s,a={}),this._initialStyles=a}var s=e.prototype;s.start=function e(){this._state<1&&(this._startStyles&&Md(this._element,this._startStyles,this._initialStyles),this._state=1)};s.finish=function e(){this.start(),this._state<2&&(Md(this._element,this._initialStyles),this._endStyles&&(Md(this._element,this._endStyles),this._endStyles=null),this._state=1)};s.destroy=function s(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Od(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Od(this._element,this._endStyles),this._endStyles=null),Md(this._element,this._initialStyles),this._state=3)};return e}();return e.initialStylesByElement=new WeakMap,e}();function _v(e){var s=null;var r=Object.keys(e);for(var n=0;n=this._delay&&n>=this._duration&&this.finish()};s.finish=function e(){this._finished||(this._finished=!0,this._onDoneFn(),kv(this._element,this._eventFn,!0))};s.destroy=function e(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,s){var r=Ev(e,"").split(","),n=Nv(r,s);n>=0&&(r.splice(n,1),xv(e,"",r.join(",")))}(this._element,this._name))};return e}();function uv(e,s,r){xv(e,"PlayState",r,vv(e,s))}function vv(e,s){var r=Ev(e,"");return r.indexOf(",")>0?Nv(r.split(","),s):Nv([r],s)}function Nv(e,s){for(var r=0;r=0)return r}return-1}function kv(e,s,r){r?e.removeEventListener(pv,s):e.addEventListener(pv,s)}function xv(e,s,r,n){var a=mv+s;if(null!=n){var i=e.style[a];if(i.length){var t=i.split(",");t[n]=r,r=t.join(",")}}e.style[a]=r}function Ev(e,s){return e.style[mv+s]}var fv="forwards",qv="linear";var hv=function(){function e(e,s,r,n,a,i,t,o){this.element=e,this.keyframes=s,this.animationName=r,this._duration=n,this._delay=a,this._finalStyles=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||qv,this.totalTime=n+a,this._buildStyler()}var s=e.prototype;s.onStart=function e(s){this._onStartFns.push(s)};s.onDone=function e(s){this._onDoneFns.push(s)};s.onDestroy=function e(s){this._onDestroyFns.push(s)};s.destroy=function e(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])};s._flushDoneFns=function e(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]};s._flushStartFns=function e(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]};s.finish=function e(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())};s.setPosition=function e(s){this._styler.setPosition(s)};s.getPosition=function e(){return this._styler.getPosition()};s.hasStarted=function e(){return this._state>=2};s.init=function e(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())};s.play=function e(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()};s.pause=function e(){this.init(),this._styler.pause()};s.restart=function e(){this.reset(),this.play()};s.reset=function e(){this._styler.destroy(),this._buildStyler(),this._styler.apply()};s._buildStyler=function e(){var s=this;this._styler=new dv(this.element,this.animationName,this._duration,this._delay,this.easing,fv,function(){return s.finish()})};s.triggerCallback=function e(s){var r="start"==s?this._onStartFns:this._onDoneFns;r.forEach(function(e){return e()}),r.length=0};s.beforeDestroy=function e(){var s=this;this.init();var r={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(e){"offset"!=e&&(r[e]=n?s._finalStyles[e]:$d(s.element,e))})}this.currentSnapshot=r};return e}();var Fv=function(e){t(s,e);function s(s,r){var n;n=e.call(this)||this,n.element=s,n._startingStyles={},n.__initialized=!1,n._styles=Ed(r);return n}var r=s.prototype;r.init=function s(){var r=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){r._startingStyles[e]=r.element.style[e]}),e.prototype.init.call(this))};r.play=function s(){var r=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return r.element.style.setProperty(e,r._styles[e])}),e.prototype.play.call(this))};r.destroy=function s(){var r=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var s=r._startingStyles[e];s?r.element.style.setProperty(e,s):r.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))};return s}(mc);var yv="gen_css_kf_",bv=" ";var Sv=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}var s=e.prototype;s.validateStyleProperty=function e(s){return vd(s)};s.matchesElement=function e(s,r){return Nd(s,r)};s.containsElement=function e(s,r){return kd(s,r)};s.query=function e(s,r,n){return xd(s,r,n)};s.computeStyle=function e(s,r,n){return window.getComputedStyle(s)[r]};s.buildKeyframeElement=function e(s,r,n){n=n.map(function(e){return Ed(e)});var a="@keyframes "+r+" {\n",i="";n.forEach(function(e){i=bv;var s=parseFloat(e.offset);a+=""+i+100*s+"% {\n",i+=bv,Object.keys(e).forEach(function(s){var r=e[s];switch(s){case"offset":return;case"easing":return void(r&&(a+=i+"animation-timing-function: "+r+";\n"));default:return void(a+=""+i+s+": "+r+";\n")}}),a+=i+"}\n"}),a+="}\n";var t=document.createElement("style");return t.innerHTML=a,t};s.animate=function e(s,r,n,a,i,t,o){if(t===void 0){t=[]}o&&this._notifyFaultyScrubber();var l=t.filter(function(e){return e instanceof hv}),_={};Wd(n,a)&&l.forEach(function(e){var s=e.currentSnapshot;Object.keys(s).forEach(function(e){return _[e]=s[e]})});var w=function(e){var s={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(r){"offset"!=r&&"easing"!=r&&(s[r]=e[r])})}),s}(r=Qd(s,r,_));if(0==n)return new Fv(s,w);var g=""+yv+this._count++,m=this.buildKeyframeElement(s,g,r);document.querySelector("head").appendChild(m);var p=ov(s,r),c=new hv(s,r,g,n,a,i,w,p);return c.onDestroy(function(){return function(e){m.parentNode.removeChild(m)}()}),c};s._notifyFaultyScrubber=function e(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)};return e}();var Cv=function(){function e(e,s,r,n){this.element=e,this.keyframes=s,this.options=r,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}var r=e.prototype;r._onFinish=function e(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])};r.init=function e(){this._buildPlayer(),this._preparePlayerBeforeStart()};r._buildPlayer=function e(){var s=this;if(this._initialized)return;this._initialized=!0;var r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:{},this.domPlayer.addEventListener("finish",function(){return s._onFinish()})};r._preparePlayerBeforeStart=function e(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};r._triggerWebAnimation=function e(s,r,n){return s.animate(r,n)};r.onStart=function e(s){this._onStartFns.push(s)};r.onDone=function e(s){this._onDoneFns.push(s)};r.onDestroy=function e(s){this._onDestroyFns.push(s)};r.play=function e(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()};r.pause=function e(){this.init(),this.domPlayer.pause()};r.finish=function e(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()};r.reset=function e(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1};r._resetDomPlayerState=function e(){this.domPlayer&&this.domPlayer.cancel()};r.restart=function e(){this.reset(),this.play()};r.hasStarted=function e(){return this._started};r.destroy=function e(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])};r.setPosition=function e(s){this.domPlayer.currentTime=s*this.time};r.getPosition=function e(){return this.domPlayer.currentTime/this.time};r.beforeDestroy=function e(){var s=this;var r={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(e){"offset"!=e&&(r[e]=s._finished?s._finalKeyframe[e]:$d(s.element,e))}),this.currentSnapshot=r};r.triggerCallback=function e(s){var r="start"==s?this._onStartFns:this._onDoneFns;r.forEach(function(e){return e()}),r.length=0};s(e,[{key:"totalTime",get:function e(){return this._delay+this._duration}}]);return e}();var Tv=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Av().toString()),this._cssKeyframesDriver=new Sv}var s=e.prototype;s.validateStyleProperty=function e(s){return vd(s)};s.matchesElement=function e(s,r){return Nd(s,r)};s.containsElement=function e(s,r){return kd(s,r)};s.query=function e(s,r,n){return xd(s,r,n)};s.computeStyle=function e(s,r,n){return window.getComputedStyle(s)[r]};s.overrideWebAnimationsSupport=function e(s){this._isNativeImpl=s};s.animate=function e(s,r,n,a,i,t,o){if(t===void 0){t=[]}if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(s,r,n,a,i,t);var l={duration:n,delay:a,fill:0==a?"both":"forwards"};i&&(l.easing=i);var _={},w=t.filter(function(e){return e instanceof Cv});Wd(n,a)&&w.forEach(function(e){var s=e.currentSnapshot;Object.keys(s).forEach(function(e){return _[e]=s[e]})});var g=ov(s,r=Qd(s,r=r.map(function(e){return Kd(e,!1)}),_));return new Cv(s,r,l,g)};return e}();function Av(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Dv=function(e){t(s,e);function s(s,r){var n;n=e.call(this)||this,n._nextAnimationId=0,n._renderer=s.createRenderer(r.body,{id:"0",encapsulation:Qe.None,styles:[],data:{animation:[]}});return n}var r=s.prototype;r.build=function e(s){var r=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(s)?_c(s):s;return Pv(this._renderer,null,r,"register",[n]),new Bv(r,this._renderer)};return s}(tc);var Bv=function(e){t(s,e);function s(s,r){var n;n=e.call(this)||this,n._id=s,n._renderer=r;return n}var r=s.prototype;r.create=function e(s,r){return new Uv(this._id,s,r||{},this._renderer)};return s}(oc);var Uv=function(){function e(e,s,r,n){this.id=e,this.element=s,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}var s=e.prototype;s._listen=function e(s,r){return this._renderer.listen(this.element,"@@"+this.id+":"+s,r)};s._command=function e(s){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a=0&&s enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Wv(e){return xt(0,[(e()(),rt(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),rt(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),rt(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),rt(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),rt(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),rt(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),rt(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),rt(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),rt(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function Qv(e){return xt(0,[(e()(),rt(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),mt(null,0)],null,null)}function Zv(e){return xt(0,[(e()(),rt(0,0,null,null,3,null,null,null,null,null,null,null)),mt(null,2),(e()(),rt(2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),vt(3,null,["",""]))],null,function(e,s){e(s,3,0,s.component._control.placeholder)})}function $v(e){return xt(0,[mt(null,3),(e()(),st(0,null,null,0))],null,null)}function Yv(e){return xt(0,[(e()(),rt(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),vt(-1,null,[" *"]))],null,null)}function Xv(e){return xt(0,[(e()(),rt(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(e,s,r){var n=!0;return"cdkObserveContent"===s&&(n=!1!==e.component.updateOutlineGap()&&n),n},null,null)),pa(1,16384,null,0,Ul,[],{ngSwitch:[0,"ngSwitch"]},null),pa(2,1196032,null,0,Xc,[Yc,pr,ci],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(e()(),st(16777216,null,null,1,null,Zv)),pa(4,278528,null,0,Pl,[Mr,Ir,Ul],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),st(16777216,null,null,1,null,$v)),pa(6,278528,null,0,Pl,[Mr,Ir,Ul],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),st(16777216,null,null,1,null,Yv)),pa(8,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null)],function(e,s){var r=s.component;e(s,1,0,r._hasLabel()),e(s,2,0,"outline"!=r.appearance),e(s,4,0,!1),e(s,6,0,!0),e(s,8,0,!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)},function(e,s){var r=s.component;e(s,0,0,r._labelId,r._control.id,r._control.id,r._control.empty&&!r._shouldAlwaysFloat,r._control.empty&&!r._shouldAlwaysFloat,"accent"==r.color,"warn"==r.color)})}function eN(e){return xt(0,[(e()(),rt(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),mt(null,4)],null,null)}function sN(e){return xt(0,[(e()(),rt(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),rt(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(e,s){var r=s.component;e(s,1,0,"accent"==r.color,"warn"==r.color)})}function rN(e){return xt(0,[(e()(),rt(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),mt(null,5)],null,function(e,s){e(s,0,0,s.component._subscriptAnimationState)})}function nN(e){return xt(0,[(e()(),rt(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),vt(1,null,["",""]))],null,function(e,s){var r=s.component;e(s,0,0,r._hintLabelId),e(s,1,0,r.hintLabel)})}function aN(e){return xt(0,[(e()(),rt(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),st(16777216,null,null,1,null,nN)),pa(2,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),mt(null,6),(e()(),rt(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),mt(null,7)],function(e,s){e(s,2,0,s.component.hintLabel)},function(e,s){e(s,0,0,s.component._subscriptAnimationState)})}function iN(e){return xt(2,[ot(671088640,1,{underlineRef:0}),ot(402653184,2,{_connectionContainerRef:0}),ot(671088640,3,{_inputContainerRef:0}),ot(671088640,4,{_label:0}),(e()(),rt(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),rt(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(e,s,r){var n=!0,a=e.component;return"click"===s&&(n=!1!==(a._control.onContainerClick&&a._control.onContainerClick(r))&&n),n},null,null)),(e()(),st(16777216,null,null,1,null,Wv)),pa(7,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),st(16777216,null,null,1,null,Qv)),pa(9,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),rt(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),mt(null,1),(e()(),rt(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),st(16777216,null,null,1,null,Xv)),pa(14,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),st(16777216,null,null,1,null,eN)),pa(16,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),st(16777216,null,null,1,null,sN)),pa(18,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),rt(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),pa(20,16384,null,0,Ul,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),st(16777216,null,null,1,null,rN)),pa(22,278528,null,0,Pl,[Mr,Ir,Ul],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),st(16777216,null,null,1,null,aN)),pa(24,278528,null,0,Pl,[Mr,Ir,Ul],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,s){var r=s.component;e(s,7,0,"outline"==r.appearance),e(s,9,0,r._prefixChildren.length),e(s,14,0,r._hasFloatingLabel()),e(s,16,0,r._suffixChildren.length),e(s,18,0,"outline"!=r.appearance),e(s,20,0,r._getDisplayedMessages()),e(s,22,0,"error"),e(s,24,0,"hint")},null)}function tN(e,s){return new y(function(r){var n=e.length;if(0===n)return void r.complete();var a=new Array(n);var i=0,t=0;var o=function o(l){var _=W(e[l]);var w=!1;r.add(_.subscribe({next:function e(s){w||(w=!0,t++),a[l]=s},error:function e(s){return r.error(s)},complete:function e(){++i!==n&&w||(t===n&&r.next(s?s.reduce(function(e,s,r){return e[s]=a[r],e},{}):a),r.complete())}}))};for(var l=0;ls?{max:{max:s,actual:e.value}}:null}};e.required=function e(s){return vN(s.value)?{required:!0}:null};e.requiredTrue=function e(s){return!0===s.value?null:{required:!0}};e.email=function e(s){return vN(s.value)?null:NN.test(s.value)?null:{email:!0}};e.minLength=function e(s){return function(e){if(vN(e.value))return null;var r=e.value?e.value.length:0;return rs?{maxlength:{requiredLength:s,actualLength:r}}:null}};e.pattern=function s(r){if(!r)return e.nullValidator;var n,a;return"string"==typeof r?(a="","^"!==r.charAt(0)&&(a+="^"),a+=r,"$"!==r.charAt(r.length-1)&&(a+="$"),n=new RegExp(a)):(a=r.toString(),n=r),function(e){if(vN(e.value))return null;var s=e.value;return n.test(s)?null:{pattern:{requiredPattern:a,actualValue:s}}}};e.nullValidator=function e(s){return null};e.compose=function e(s){if(!s)return null;var r=s.filter(xN);return 0==r.length?null:function(e){return fN(function(e,s){return r.map(function(s){return s(e)})}(e))}};e.composeAsync=function e(s){if(!s)return null;var r=s.filter(xN);return 0==r.length?null:function(e){return function(){for(var e=arguments.length,s=new Array(e),r=0;r=0;--r){if(this._accessors[r][1]===s)return void this._accessors.splice(r,1)}};s.select=function e(s){var r=this;this._accessors.forEach(function(e){r._isSameGroup(e,s)&&e[1]!==s&&e[1].fireUncheck(s.value)})};s._isSameGroup=function e(s,r){return!!s[0].control&&s[0]._parent===r._control._parent&&s[1].name===r.name};return e}();var yN={formControlName:'\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '};var bN=function(){function e(){}e.controlParentException=function e(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+yN.formControlName)};e.ngModelGroupException=function e(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+yN.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+yN.ngModelGroup)};e.missingFormException=function e(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+yN.formControlName)};e.groupParentException=function e(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+yN.formGroupName)};e.arrayParentException=function e(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+yN.formArrayName)};e.disabledAttrWarning=function e(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")};e.ngModelWarning=function e(s){console.warn("\n It looks like you're using ngModel on the same form field as "+s+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===s?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")};return e}();function SN(e,s){return[].concat(s.path,[e])}function CN(e,s){e||BN(s,"Cannot find control with"),s.valueAccessor||BN(s,"No value accessor for form control with"),e.validator=kN.compose([e.validator,s.validator]),e.asyncValidator=kN.composeAsync([e.asyncValidator,s.asyncValidator]),s.valueAccessor.writeValue(e.value),function(e,s){s.valueAccessor.registerOnChange(function(r){e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&TN(e,s)})}(e,s),function(e,s){e.registerOnChange(function(e,r){s.valueAccessor.writeValue(e),r&&s.viewToModelUpdate(e)})}(e,s),function(e,s){s.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&TN(e,s),"submit"!==e.updateOn&&e.markAsTouched()})}(e,s),s.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){s.valueAccessor.setDisabledState(e)}),s._rawValidators.forEach(function(s){s.registerOnValidatorChange&&s.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),s._rawAsyncValidators.forEach(function(s){s.registerOnValidatorChange&&s.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function TN(e,s){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function AN(e,s){null==e&&BN(s,"Cannot find control with"),e.validator=kN.compose([e.validator,s.validator]),e.asyncValidator=kN.composeAsync([e.asyncValidator,s.asyncValidator])}function DN(e){return BN(e,"There is no FormControl instance attached to form control element with")}function BN(e,s){var r;throw r=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(s+" "+r)}function UN(e){return null!=e?kN.compose(e.map(qN)):null}function PN(e){return null!=e?kN.composeAsync(e.map(hN)):null}var KN=[function(){function e(e,s){this._renderer=e,this._elementRef=s,this.onChange=function(e){},this.onTouched=function(){}}var s=e.prototype;s.writeValue=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"checked",s)};s.registerOnChange=function e(s){this.onChange=s};s.registerOnTouched=function e(s){this.onTouched=s};s.setDisabledState=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)};return e}(),function(){function e(e,s){this._renderer=e,this._elementRef=s,this.onChange=function(e){},this.onTouched=function(){}}var s=e.prototype;s.writeValue=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(s))};s.registerOnChange=function e(s){this.onChange=function(e){s(""==e?null:parseFloat(e))}};s.registerOnTouched=function e(s){this.onTouched=s};s.setDisabledState=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)};return e}(),function(){function e(e,s){this._renderer=e,this._elementRef=s,this.onChange=function(e){},this.onTouched=function(){}}var s=e.prototype;s.writeValue=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==s?"":s)};s.registerOnChange=function e(s){this.onChange=function(e){s(""==e?null:parseFloat(e))}};s.registerOnTouched=function e(s){this.onTouched=s};s.setDisabledState=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)};return e}(),function(){function e(e,s){this._renderer=e,this._elementRef=s,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Zs}var r=e.prototype;r.writeValue=function e(s){this.value=s;var r=this._getOptionId(s);null==r&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,s){return null==e?""+s:(s&&"object"==typeof s&&(s="Object"),(e+": "+s).slice(0,50))}(r,s);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)};r.registerOnChange=function e(s){var r=this;this.onChange=function(e){r.value=r._getOptionValue(e),s(r.value)}};r.registerOnTouched=function e(s){this.onTouched=s};r.setDisabledState=function e(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)};r._registerOption=function e(){return(this._idCounter++).toString()};r._getOptionId=function e(s){for(var r=0,n=Array.from(this._optionMap.keys());r-1)}}else n=function e(s,r){s._setSelected(!1)};this._optionMap.forEach(n)};r.registerOnChange=function e(s){var r=this;this.onChange=function(e){var n=[];if(e.hasOwnProperty("selectedOptions")){var a=e.selectedOptions;for(var i=0;i\n ')};return e}()];function IN(e,s){e._syncPendingControls(),s.forEach(function(e){var s=e.control;"submit"===s.updateOn&&s._pendingChange&&(e.viewToModelUpdate(s._pendingValue),s._pendingChange=!1)})}function JN(e,s){var r=e.indexOf(s);r>-1&&e.splice(r,1)}var MN="VALID",ON="INVALID",RN="PENDING",LN="DISABLED";function jN(e){var s=GN(e)?e.validators:e;return Array.isArray(s)?UN(s):s||null}function VN(e,s){var r=GN(s)?s.asyncValidators:e;return Array.isArray(r)?PN(r):r||null}function GN(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var HN=function(){function e(e,s){this.validator=e,this.asyncValidator=s,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}var r=e.prototype;r.setValidators=function e(s){this.validator=jN(s)};r.setAsyncValidators=function e(s){this.asyncValidator=VN(s)};r.clearValidators=function e(){this.validator=null};r.clearAsyncValidators=function e(){this.asyncValidator=null};r.markAsTouched=function e(s){if(s===void 0){s={}}this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)};r.markAllAsTouched=function e(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})};r.markAsUntouched=function e(s){if(s===void 0){s={}}this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)};r.markAsDirty=function e(s){if(s===void 0){s={}}this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)};r.markAsPristine=function e(s){if(s===void 0){s={}}this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)};r.markAsPending=function e(s){if(s===void 0){s={}}this.status=RN,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)};r.disable=function e(s){if(s===void 0){s={}}var r=this._parentMarkedDirty(s.onlySelf);this.status=LN,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign({},s,{onlySelf:!0}))}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},s,{skipPristineCheck:r})),this._onDisabledChange.forEach(function(e){return e(!0)})};r.enable=function e(s){if(s===void 0){s={}}var r=this._parentMarkedDirty(s.onlySelf);this.status=MN,this._forEachChild(function(e){e.enable(Object.assign({},s,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors(Object.assign({},s,{skipPristineCheck:r})),this._onDisabledChange.forEach(function(e){return e(!1)})};r._updateAncestors=function e(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())};r.setParent=function e(s){this._parent=s};r.updateValueAndValidity=function e(s){if(s===void 0){s={}}this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==MN&&this.status!==RN||this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)};r._updateTreeValidity=function e(s){if(s===void 0){s={emitEvent:!0}}this._forEachChild(function(e){return e._updateTreeValidity(s)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})};r._setInitialStatus=function e(){this.status=this._allControlsDisabled()?LN:MN};r._runValidator=function e(){return this.validator?this.validator(this):null};r._runAsyncValidator=function e(s){var r=this;if(this.asyncValidator){this.status=RN;var n=EN(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(e){return r.setErrors(e,{emitEvent:s})})}};r._cancelExistingSubscription=function e(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()};r.setErrors=function e(s,r){if(r===void 0){r={}}this.errors=s,this._updateControlsErrors(!1!==r.emitEvent)};r.get=function e(s){return function(e,s,r){return null==s?null:(s instanceof Array||(s=s.split(".")),s instanceof Array&&0===s.length?null:s.reduce(function(e,s){return e instanceof WN?e.controls.hasOwnProperty(s)?e.controls[s]:null:e instanceof QN&&e.at(s)||null},e))}(this,s)};r.getError=function e(s,r){var n=r?this.get(r):this;return n&&n.errors?n.errors[s]:null};r.hasError=function e(s,r){return!!this.getError(s,r)};r._updateControlsErrors=function e(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)};r._initObservables=function e(){this.valueChanges=new Ma,this.statusChanges=new Ma};r._calculateStatus=function e(){return this._allControlsDisabled()?LN:this.errors?ON:this._anyControlsHaveStatus(RN)?RN:this._anyControlsHaveStatus(ON)?ON:MN};r._anyControlsHaveStatus=function e(s){return this._anyControls(function(e){return e.status===s})};r._anyControlsDirty=function e(){return this._anyControls(function(e){return e.dirty})};r._anyControlsTouched=function e(){return this._anyControls(function(e){return e.touched})};r._updatePristine=function e(s){if(s===void 0){s={}}this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)};r._updateTouched=function e(s){if(s===void 0){s={}}this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)};r._isBoxedValue=function e(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s};r._registerOnCollectionChange=function e(s){this._onCollectionChange=s};r._setUpdateStrategy=function e(s){GN(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)};r._parentMarkedDirty=function e(s){return!s&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()};s(e,[{key:"parent",get:function e(){return this._parent}},{key:"valid",get:function e(){return this.status===MN}},{key:"invalid",get:function e(){return this.status===ON}},{key:"pending",get:function e(){return this.status==RN}},{key:"disabled",get:function e(){return this.status===LN}},{key:"enabled",get:function e(){return this.status!==LN}},{key:"dirty",get:function e(){return!this.pristine}},{key:"untouched",get:function e(){return!this.touched}},{key:"updateOn",get:function e(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function e(){var s=this;for(;s._parent;){s=s._parent}return s}}]);return e}();var zN=function(e){t(s,e);function s(s,r,n){var a;if(s===void 0){s=null}a=e.call(this,jN(r),VN(n,r))||this,a._onChange=[],a._applyFormState(s),a._setUpdateStrategy(r),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a._initObservables();return a}var r=s.prototype;r.setValue=function e(s,r){var n=this;if(r===void 0){r={}}this.value=this._pendingValue=s,this._onChange.length&&!1!==r.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==r.emitViewToModelChange)}),this.updateValueAndValidity(r)};r.patchValue=function e(s,r){if(r===void 0){r={}}this.setValue(s,r)};r.reset=function e(s,r){if(s===void 0){s=null}if(r===void 0){r={}}this._applyFormState(s),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1};r._updateValue=function e(){};r._anyControls=function e(s){return!1};r._allControlsDisabled=function e(){return this.disabled};r.registerOnChange=function e(s){this._onChange.push(s)};r._clearChangeFns=function e(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}};r.registerOnDisabledChange=function e(s){this._onDisabledChange.push(s)};r._forEachChild=function e(s){};r._syncPendingControls=function e(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))};r._applyFormState=function e(s){this._isBoxedValue(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s};return s}(HN);var WN=function(e){t(s,e);function s(s,r,n){var a;a=e.call(this,jN(r),VN(n,r))||this,a.controls=s,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1});return a}var r=s.prototype;r.registerControl=function e(s,r){return this.controls[s]?this.controls[s]:(this.controls[s]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)};r.addControl=function e(s,r){this.registerControl(s,r),this.updateValueAndValidity(),this._onCollectionChange()};r.removeControl=function e(s){this.controls[s]&&this.controls[s]._registerOnCollectionChange(function(){}),delete this.controls[s],this.updateValueAndValidity(),this._onCollectionChange()};r.setControl=function e(s,r){this.controls[s]&&this.controls[s]._registerOnCollectionChange(function(){}),delete this.controls[s],r&&this.registerControl(s,r),this.updateValueAndValidity(),this._onCollectionChange()};r.contains=function e(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled};r.setValue=function e(s,r){var n=this;if(r===void 0){r={}}this._checkAllValuesPresent(s),Object.keys(s).forEach(function(e){n._throwIfControlMissing(e),n.controls[e].setValue(s[e],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)};r.patchValue=function e(s,r){var n=this;if(r===void 0){r={}}Object.keys(s).forEach(function(e){n.controls[e]&&n.controls[e].patchValue(s[e],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)};r.reset=function e(s,r){if(s===void 0){s={}}if(r===void 0){r={}}this._forEachChild(function(e,n){e.reset(s[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)};r.getRawValue=function e(){return this._reduceChildren({},function(e,s,r){return e[r]=s instanceof zN?s.value:s.getRawValue(),e})};r._syncPendingControls=function e(){var s=this._reduceChildren(!1,function(e,s){return!!s._syncPendingControls()||e});return s&&this.updateValueAndValidity({onlySelf:!0}),s};r._throwIfControlMissing=function e(s){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[s])throw new Error("Cannot find form control with name: "+s+".")};r._forEachChild=function e(s){var r=this;Object.keys(this.controls).forEach(function(e){return s(r.controls[e],e)})};r._setUpControls=function e(){var s=this;this._forEachChild(function(e){e.setParent(s),e._registerOnCollectionChange(s._onCollectionChange)})};r._updateValue=function e(){this.value=this._reduceValue()};r._anyControls=function e(s){var r=this;var n=!1;return this._forEachChild(function(e,a){n=n||r.contains(a)&&s(e)}),n};r._reduceValue=function e(){var s=this;return this._reduceChildren({},function(e,r,n){return(r.enabled||s.disabled)&&(e[n]=r.value),e})};r._reduceChildren=function e(s,r){var n=s;return this._forEachChild(function(e,s){n=r(n,e,s)}),n};r._allControlsDisabled=function e(){for(var s=0,r=Object.keys(this.controls);s0||this.disabled};r._checkAllValuesPresent=function e(s){this._forEachChild(function(e,r){if(void 0===s[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})};return s}(HN);var QN=function(e){t(r,e);function r(s,r,n){var a;a=e.call(this,jN(r),VN(n,r))||this,a.controls=s,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1});return a}var n=r.prototype;n.at=function e(s){return this.controls[s]};n.push=function e(s){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity(),this._onCollectionChange()};n.insert=function e(s,r){this.controls.splice(s,0,r),this._registerControl(r),this.updateValueAndValidity()};n.removeAt=function e(s){this.controls[s]&&this.controls[s]._registerOnCollectionChange(function(){}),this.controls.splice(s,1),this.updateValueAndValidity()};n.setControl=function e(s,r){this.controls[s]&&this.controls[s]._registerOnCollectionChange(function(){}),this.controls.splice(s,1),r&&(this.controls.splice(s,0,r),this._registerControl(r)),this.updateValueAndValidity(),this._onCollectionChange()};n.setValue=function e(s,r){var n=this;if(r===void 0){r={}}this._checkAllValuesPresent(s),s.forEach(function(e,s){n._throwIfControlMissing(s),n.at(s).setValue(e,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)};n.patchValue=function e(s,r){var n=this;if(r===void 0){r={}}s.forEach(function(e,s){n.at(s)&&n.at(s).patchValue(e,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)};n.reset=function e(s,r){if(s===void 0){s=[]}if(r===void 0){r={}}this._forEachChild(function(e,n){e.reset(s[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)};n.getRawValue=function e(){return this.controls.map(function(e){return e instanceof zN?e.value:e.getRawValue()})};n.clear=function e(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())};n._syncPendingControls=function e(){var s=this.controls.reduce(function(e,s){return!!s._syncPendingControls()||e},!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s};n._throwIfControlMissing=function e(s){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(s))throw new Error("Cannot find form control at index "+s)};n._forEachChild=function e(s){this.controls.forEach(function(e,r){s(e,r)})};n._updateValue=function e(){var s=this;this.value=this.controls.filter(function(e){return e.enabled||s.disabled}).map(function(e){return e.value})};n._anyControls=function e(s){return this.controls.some(function(e){return e.enabled&&s(e)})};n._setUpControls=function e(){var s=this;this._forEachChild(function(e){return s._registerControl(e)})};n._checkAllValuesPresent=function e(s){this._forEachChild(function(e,r){if(void 0===s[r])throw new Error("Must supply a value for form control at index: "+r+".")})};n._allControlsDisabled=function e(){for(var s=this.controls,r=Array.isArray(s),n=0,s=r?s:s[Symbol.iterator]();;){var a;if(r){if(n>=s.length)break;a=s[n++]}else{n=s.next();if(n.done)break;a=n.value}var i=a;if(i.enabled)return!1}return this.controls.length>0||this.disabled};n._registerControl=function e(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)};s(r,[{key:"length",get:function e(){return this.controls.length}}]);return r}(HN);var ZN=function(){return Promise.resolve(null)}();var $N=function(e){t(r,e);function r(s,r){var n;n=e.call(this)||this,n.submitted=!1,n._directives=[],n.ngSubmit=new Ma,n.form=new WN({},UN(s),PN(r));return n}var n=r.prototype;n.ngAfterViewInit=function e(){this._setUpdateStrategy()};n.addControl=function e(s){var r=this;ZN.then(function(){var e=r._findContainer(s.path);s.control=e.registerControl(s.name,s.control),CN(s.control,s),s.control.updateValueAndValidity({emitEvent:!1}),r._directives.push(s)})};n.getControl=function e(s){return this.form.get(s.path)};n.removeControl=function e(s){var r=this;ZN.then(function(){var e=r._findContainer(s.path);e&&e.removeControl(s.name),JN(r._directives,s)})};n.addFormGroup=function e(s){var r=this;ZN.then(function(){var e=r._findContainer(s.path),n=new WN({});AN(n,s),e.registerControl(s.name,n),n.updateValueAndValidity({emitEvent:!1})})};n.removeFormGroup=function e(s){var r=this;ZN.then(function(){var e=r._findContainer(s.path);e&&e.removeControl(s.name)})};n.getFormGroup=function e(s){return this.form.get(s.path)};n.updateModel=function e(s,r){var n=this;ZN.then(function(){n.form.get(s.path).setValue(r)})};n.setValue=function e(s){this.control.setValue(s)};n.onSubmit=function e(s){return this.submitted=!0,IN(this.form,this._directives),this.ngSubmit.emit(s),!1};n.onReset=function e(){this.resetForm()};n.resetForm=function e(s){this.form.reset(s),this.submitted=!1};n._setUpdateStrategy=function e(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)};n._findContainer=function e(s){return s.pop(),s.length?this.form.get(s):this.form};s(r,[{key:"formDirective",get:function e(){return this}},{key:"control",get:function e(){return this.form}},{key:"path",get:function e(){return[]}},{key:"controls",get:function e(){return this.form.controls}}]);return r}(gN);var YN=function(e){t(r,e);function r(){return e.apply(this,arguments)||this}var n=r.prototype;n.ngOnInit=function e(){this._checkParentType(),this.formDirective.addFormGroup(this)};n.ngOnDestroy=function e(){this.formDirective&&this.formDirective.removeFormGroup(this)};n._checkParentType=function e(){};s(r,[{key:"control",get:function e(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function e(){return SN(this.name,this._parent)}},{key:"formDirective",get:function e(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function e(){return UN(this._validators)}},{key:"asyncValidator",get:function e(){return PN(this._asyncValidators)}}]);return r}(gN);var XN=function e(){};var ek=new Ce("NgModelWithFormControlWarning");var sk=function(e){t(r,e);function r(s,r){var n;n=e.call(this)||this,n._validators=s,n._asyncValidators=r,n.submitted=!1,n.directives=[],n.form=null,n.ngSubmit=new Ma;return n}var n=r.prototype;n.ngOnChanges=function e(s){this._checkFormPresent(),s.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())};n.addControl=function e(s){var r=this.form.get(s.path);return CN(r,s),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(s),r};n.getControl=function e(s){return this.form.get(s.path)};n.removeControl=function e(s){JN(this.directives,s)};n.addFormGroup=function e(s){var r=this.form.get(s.path);AN(r,s),r.updateValueAndValidity({emitEvent:!1})};n.removeFormGroup=function e(s){};n.getFormGroup=function e(s){return this.form.get(s.path)};n.addFormArray=function e(s){var r=this.form.get(s.path);AN(r,s),r.updateValueAndValidity({emitEvent:!1})};n.removeFormArray=function e(s){};n.getFormArray=function e(s){return this.form.get(s.path)};n.updateModel=function e(s,r){this.form.get(s.path).setValue(r)};n.onSubmit=function e(s){return this.submitted=!0,IN(this.form,this.directives),this.ngSubmit.emit(s),!1};n.onReset=function e(){this.resetForm()};n.resetForm=function e(s){this.form.reset(s),this.submitted=!1};n._updateDomValue=function e(){var s=this;this.directives.forEach(function(e){var r=s.form.get(e.path);e.control!==r&&(function(e,s){s.valueAccessor.registerOnChange(function(){return DN(s)}),s.valueAccessor.registerOnTouched(function(){return DN(s)}),s._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),s._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),r&&CN(r,e),e.control=r)}),this.form._updateTreeValidity({emitEvent:!1})};n._updateRegistrations=function e(){var s=this;this.form._registerOnCollectionChange(function(){return s._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form};n._updateValidators=function e(){var s=UN(this._validators);this.form.validator=kN.compose([this.form.validator,s]);var r=PN(this._asyncValidators);this.form.asyncValidator=kN.composeAsync([this.form.asyncValidator,r])};n._checkFormPresent=function e(){this.form||bN.missingFormException()};s(r,[{key:"formDirective",get:function e(){return this}},{key:"control",get:function e(){return this.form}},{key:"path",get:function e(){return[]}}]);return r}(gN);var rk=function(e){t(s,e);function s(s,r,n){var a;a=e.call(this)||this,a._parent=s,a._validators=r,a._asyncValidators=n;return a}var r=s.prototype;r._checkParentType=function e(){ak(this._parent)&&bN.groupParentException()};return s}(YN);var nk=function(e){t(r,e);function r(s,r,n){var a;a=e.call(this)||this,a._parent=s,a._validators=r,a._asyncValidators=n;return a}var n=r.prototype;n.ngOnInit=function e(){this._checkParentType(),this.formDirective.addFormArray(this)};n.ngOnDestroy=function e(){this.formDirective&&this.formDirective.removeFormArray(this)};n._checkParentType=function e(){ak(this._parent)&&bN.arrayParentException()};s(r,[{key:"control",get:function e(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function e(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function e(){return SN(this.name,this._parent)}},{key:"validator",get:function e(){return UN(this._validators)}},{key:"asyncValidator",get:function e(){return PN(this._asyncValidators)}}]);return r}(gN);function ak(e){return!(e instanceof rk||e instanceof sk||e instanceof nk)}var ik=function(){var e=function(e){t(r,e);function r(s,r,n,a,t){var o;o=e.call(this)||this,o._ngModelWarningConfig=t,o._added=!1,o.update=new Ma,o._ngModelWarningSent=!1,o._parent=s,o._rawValidators=r||[],o._rawAsyncValidators=n||[],o.valueAccessor=function(e,s){if(!s)return null;Array.isArray(s)||BN(e,"Value accessor was not provided as an array for form control with");var r=void 0,n=void 0,a=void 0;return s.forEach(function(s){s.constructor===_N?r=s:function(e){return KN.some(function(s){return e.constructor===s})}(s)?(n&&BN(e,"More than one built-in value accessor matches form control with"),n=s):(a&&BN(e,"More than one custom value accessor matches form control with"),a=s)}),a||n||r||(BN(e,"No valid value accessor for form control with"),null)}(i(o),a);return o}var n=r.prototype;n.ngOnChanges=function e(s){var n,a;this._added||this._setUpControl(),function(e,s){if(!e.hasOwnProperty("model"))return!1;var r=e.model;return!!r.isFirstChange()||!Zs(s,r.currentValue)}(s,this.viewModel)&&("formControlName",n=r,this,a=this._ngModelWarningConfig,ts()&&"never"!==a&&((null!==a&&"once"!==a||n._ngModelWarningSentOnce)&&("always"!==a||this._ngModelWarningSent)||(bN.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};n.ngOnDestroy=function e(){this.formDirective&&this.formDirective.removeControl(this)};n.viewToModelUpdate=function e(s){this.viewModel=s,this.update.emit(s)};n._checkParentType=function e(){!(this._parent instanceof rk)&&this._parent instanceof YN?bN.ngModelGroupException():this._parent instanceof rk||this._parent instanceof sk||this._parent instanceof nk||bN.controlParentException()};n._setUpControl=function e(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0};s(r,[{key:"isDisabled",set:function e(s){bN.disabledAttrWarning()}},{key:"path",get:function e(){return SN(this.name,this._parent)}},{key:"formDirective",get:function e(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function e(){return UN(this._rawValidators)}},{key:"asyncValidator",get:function e(){return PN(this._rawAsyncValidators)}}]);return r}(pN);return e._ngModelWarningSentOnce=!1,e}();var tk=function e(){};var ok=function(){function e(){}var s=e.prototype;s.group=function e(s,r){if(r===void 0){r=null}var n=this._reduceControls(s);var a=null,i=null,t=void 0;return null!=r&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(r)?(a=null!=r.validators?r.validators:null,i=null!=r.asyncValidators?r.asyncValidators:null,t=null!=r.updateOn?r.updateOn:void 0):(a=null!=r.validator?r.validator:null,i=null!=r.asyncValidator?r.asyncValidator:null)),new WN(n,{asyncValidators:i,updateOn:t,validators:a})};s.control=function e(s,r,n){return new zN(s,r,n)};s.array=function e(s,r,n){var a=this;var i=s.map(function(e){return a._createControl(e)});return new QN(i,r,n)};s._reduceControls=function e(s){var r=this;var n={};return Object.keys(s).forEach(function(e){n[e]=r._createControl(s[e])}),n};s._createControl=function e(s){return s instanceof zN||s instanceof WN||s instanceof QN?s:Array.isArray(s)?this.control(s[0],s.length>1?s[1]:null,s.length>2?s[2]:null):this.control(s)};return e}();var lk=function(){function e(){}e.withConfig=function s(r){return{ngModule:e,providers:[{provide:ek,useValue:r.warnOnNgModelWithFormControl}]}};return e}();var _k=hc({passive:!0});var wk=function(){var e=function(){function e(e,s){this._platform=e,this._ngZone=s,this._monitoredElements=new Map}var s=e.prototype;s.monitor=function e(s){var r=this;if(!this._platform.isBrowser)return Yl;var n=uc(s),a=this._monitoredElements.get(n);if(a)return a.subject.asObservable();var i=new D,t="cdk-text-field-autofilled",o=function e(s){"cdk-text-field-autofill-start"!==s.animationName||n.classList.contains(t)?"cdk-text-field-autofill-end"===s.animationName&&n.classList.contains(t)&&(n.classList.remove(t),r._ngZone.run(function(){return i.next({target:s.target,isAutofilled:!1})})):(n.classList.add(t),r._ngZone.run(function(){return i.next({target:s.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,_k),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function e(){n.removeEventListener("animationstart",o,_k)}}),i.asObservable()};s.stopMonitoring=function e(s){var r=uc(s),n=this._monitoredElements.get(r);n&&(n.unlisten(),n.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))};s.ngOnDestroy=function e(){var s=this;this._monitoredElements.forEach(function(e,r){return s.stopMonitoring(r)})};return e}();return e.ngInjectableDef=ve({factory:function s(){return new e(Re(kc),Re(ci))},token:e,providedIn:"root"}),e}();var gk=function e(){};var mk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];var pk=0;var ck=function e(s,r,n,a){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=n,this.ngControl=a};var dk=Uc(ck);var uk=function(e){t(r,e);function r(s,r,n,a,i,t,o,l,_){var w;w=e.call(this,t,a,i,n)||this,w._elementRef=s,w._platform=r,w.ngControl=n,w._autofillMonitor=l,w._uid="mat-input-"+pk++,w._isServer=!1,w._isNativeSelect=!1,w.focused=!1,w.stateChanges=new D,w.controlType="mat-input",w.autofilled=!1,w._disabled=!1,w._required=!1,w._type="text",w._readonly=!1,w._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return fc().has(e)});var g=w._elementRef.nativeElement;w._inputValueAccessor=o||g,w._previousNativeValue=w.value,w.id=w.id,r.IOS&&_.runOutsideAngular(function(){s.nativeElement.addEventListener("keyup",function(e){var s=e.target;s.value||s.selectionStart||s.selectionEnd||(s.setSelectionRange(1,1),s.setSelectionRange(0,0))})}),w._isServer=!w._platform.isBrowser,w._isNativeSelect="select"===g.nodeName.toLowerCase(),w._isNativeSelect&&(w.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select");return w}var n=r.prototype;n.ngOnInit=function e(){var s=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){s.autofilled=e.isAutofilled,s.stateChanges.next()})};n.ngOnChanges=function e(){this.stateChanges.next()};n.ngOnDestroy=function e(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)};n.ngDoCheck=function e(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()};n.focus=function e(s){this._elementRef.nativeElement.focus(s)};n._focusChanged=function e(s){s===this.focused||this.readonly&&s||(this.focused=s,this.stateChanges.next())};n._onInput=function e(){};n._dirtyCheckNativeValue=function e(){var s=this._elementRef.nativeElement.value;this._previousNativeValue!==s&&(this._previousNativeValue=s,this.stateChanges.next())};n._validateType=function e(){if(mk.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")};n._isNeverEmpty=function e(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};n._isBadInput=function e(){var s=this._elementRef.nativeElement.validity;return s&&s.badInput};n._isTextarea=function e(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()};n.setDescribedByIds=function e(s){this._ariaDescribedby=s.join(" ")};n.onContainerClick=function e(){this.focused||this.focus()};s(r,[{key:"disabled",get:function e(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function e(s){this._disabled=dc(s),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function e(){return this._id},set:function e(s){this._id=s||this._uid}},{key:"required",get:function e(){return this._required},set:function e(s){this._required=dc(s)}},{key:"type",get:function e(){return this._type},set:function e(s){this._type=s||"text",this._validateType(),!this._isTextarea()&&fc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function e(){return this._inputValueAccessor.value},set:function e(s){s!==this.value&&(this._inputValueAccessor.value=s,this.stateChanges.next())}},{key:"readonly",get:function e(){return this._readonly},set:function e(s){this._readonly=dc(s)}},{key:"empty",get:function e(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function e(){if(this._isNativeSelect){var s=this._elementRef.nativeElement,r=s.options[0];return this.focused||s.multiple||!this.empty||!!(s.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}}]);return r}(dk);var vk=function e(){};var Nk=function(){function e(e,s,r){this.courseService=e,this.route=s,this.router=r,this.showAll=!1}var s=e.prototype;s.ngOnInit=function e(){var s=this;this.courseService.loadData(),this.courseSearchForm=new WN({searchBar:new zN(sessionStorage.getItem("queue"))}),this.searchResults=this.courseService.courses,this.route.params.subscribe(function(e){s.courseService.set(e.id)})};s.setCourse=function e(s){var r=this;this.router.navigate([""]).then(function(){return r.router.navigate(["course",s])})};s.setTopCourse=function e(){var s=Object.keys(this.searchResults)[0];this.setCourse(s)};s.updateSearchResults=function e(s,r){sessionStorage.setItem("queue",s),s=s.toLowerCase(),this.courseService.set(null),this.searchResults=this.courseService.search(s,/^[0-9]+$/.test(s))};return e}();o("crOs");var kk=o("s1tS");var xk=function e(){};var Ek=function e(){};var fk=function(){function e(e){var s=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){s.headers=new Map,e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>0){var n=e.slice(0,r),a=n.toLowerCase(),i=e.slice(r+1).trim();s.maybeSetNormalizedName(n,a),s.headers.has(a)?s.headers.get(a).push(i):s.headers.set(a,[i])}})}:function(){s.headers=new Map,Object.keys(e).forEach(function(r){var n=e[r];var a=r.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(s.headers.set(a,n),s.maybeSetNormalizedName(r,a))})}:this.headers=new Map}var s=e.prototype;s.has=function e(s){return this.init(),this.headers.has(s.toLowerCase())};s.get=function e(s){this.init();var r=this.headers.get(s.toLowerCase());return r&&r.length>0?r[0]:null};s.keys=function e(){return this.init(),Array.from(this.normalizedNames.values())};s.getAll=function e(s){return this.init(),this.headers.get(s.toLowerCase())||null};s.append=function e(s,r){return this.clone({name:s,value:r,op:"a"})};s.set=function e(s,r){return this.clone({name:s,value:r,op:"s"})};s.delete=function e(s,r){return this.clone({name:s,value:r,op:"d"})};s.maybeSetNormalizedName=function e(s,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,s)};s.init=function s(){var r=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return r.applyUpdate(e)}),this.lazyUpdate=null))};s.copyFrom=function e(s){var r=this;s.init(),Array.from(s.headers.keys()).forEach(function(e){r.headers.set(e,s.headers.get(e)),r.normalizedNames.set(e,s.normalizedNames.get(e))})};s.clone=function s(r){var s=new e;return s.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,s.lazyUpdate=(this.lazyUpdate||[]).concat([r]),s};s.applyUpdate=function e(s){var r=s.name.toLowerCase();switch(s.op){case"a":case"s":var n=s.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(s.name,r);var a=("a"===s.op?this.headers.get(r):void 0)||[];a.push.apply(a,n),this.headers.set(r,a);break;case"d":var i=s.value;if(i){var t=this.headers.get(r);if(!t)return;0===(t=t.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,t)}else this.headers.delete(r),this.normalizedNames.delete(r)}};s.forEach=function e(s){var r=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(e){return s(r.normalizedNames.get(e),r.headers.get(e))})};return e}();var qk=function(){function e(){}var s=e.prototype;s.encodeKey=function e(s){return hk(s)};s.encodeValue=function e(s){return hk(s)};s.decodeKey=function e(s){return decodeURIComponent(s)};s.decodeValue=function e(s){return decodeURIComponent(s)};return e}();function hk(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Fk=function(){function e(e){var s=this;if(e===void 0){e={}}if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new qk,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,s){var r=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),a=-1==n?[s.decodeKey(e),""]:[s.decodeKey(e.slice(0,n)),s.decodeValue(e.slice(n+1))],i=a[0],t=a[1],o=r.get(i)||[];o.push(t),r.set(i,o)}),r}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(r){var n=e.fromObject[r];s.map.set(r,Array.isArray(n)?n:[n])})):this.map=null}var s=e.prototype;s.has=function e(s){return this.init(),this.map.has(s)};s.get=function e(s){this.init();var r=this.map.get(s);return r?r[0]:null};s.getAll=function e(s){return this.init(),this.map.get(s)||null};s.keys=function e(){return this.init(),Array.from(this.map.keys())};s.append=function e(s,r){return this.clone({param:s,value:r,op:"a"})};s.set=function e(s,r){return this.clone({param:s,value:r,op:"s"})};s.delete=function e(s,r){return this.clone({param:s,value:r,op:"d"})};s.toString=function e(){var s=this;return this.init(),this.keys().map(function(e){var r=s.encoder.encodeKey(e);return s.map.get(e).map(function(e){return r+"="+s.encoder.encodeValue(e)}).join("&")}).join("&")};s.clone=function s(r){var s=new e({encoder:this.encoder});return s.cloneFrom=this.cloneFrom||this,s.updates=(this.updates||[]).concat([r]),s};s.init=function e(){var s=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return s.map.set(e,s.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var r=("a"===e.op?s.map.get(e.param):void 0)||[];r.push(e.value),s.map.set(e.param,r);break;case"d":if(void 0===e.value){s.map.delete(e.param);break}{var n=s.map.get(e.param)||[];var a=n.indexOf(e.value);-1!==a&&n.splice(a,1),n.length>0?s.map.set(e.param,n):s.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)};return e}();function yk(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function bk(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Sk(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Ck=function(){function e(e,s,r,n){var a;if(this.url=s,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==r?r:null,a=n):a=r,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new fk),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=s;else{var t=s.indexOf("?");this.urlWithParams=s+(-1===t?"?":t=200&&this.status<300};var Dk=function(e){t(s,e);function s(s){var r;if(s===void 0){s={}}r=e.call(this,s)||this,r.type=Tk.ResponseHeader;return r}var r=s.prototype;r.clone=function e(r){if(r===void 0){r={}}return new s({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})};return s}(Ak);var Bk=function(e){t(s,e);function s(s){var r;if(s===void 0){s={}}r=e.call(this,s)||this,r.type=Tk.Response,r.body=void 0!==s.body?s.body:null;return r}var r=s.prototype;r.clone=function e(r){if(r===void 0){r={}}return new s({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})};return s}(Ak);var Uk=function(e){t(s,e);function s(s){var r;r=e.call(this,s,0,"Unknown Error")||this,r.name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(s.url||"(unknown url)"):"Http failure response for "+(s.url||"(unknown url)")+": "+s.status+" "+s.statusText,r.error=s.error||null;return r}return s}(Ak);function Pk(e,s){return{body:s,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Kk=function(){function e(e){this.handler=e}var s=e.prototype;s.request=function e(s,r,n){var a=this;if(n===void 0){n={}}var i;if(s instanceof Ck)i=s;else{var t=void 0;t=n.headers instanceof fk?n.headers:new fk(n.headers);var o=void 0;n.params&&(o=n.params instanceof Fk?n.params:new Fk({fromObject:n.params})),i=new Ck(s,r,void 0!==n.body?n.body:null,{headers:t,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var l=Gl(i).pipe(U_(function(e){return a.handler.handle(e)}));if(s instanceof Ck||"events"===n.observe)return l;var _=l.pipe(r_(function(e){return e instanceof Bk}));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return _.pipe(V(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return _.pipe(V(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return _.pipe(V(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return _.pipe(V(function(e){return e.body}))}case"response":return _;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}};s.delete=function e(s,r){if(r===void 0){r={}}return this.request("DELETE",s,r)};s.get=function e(s,r){if(r===void 0){r={}}return this.request("GET",s,r)};s.head=function e(s,r){if(r===void 0){r={}}return this.request("HEAD",s,r)};s.jsonp=function e(s,r){return this.request("JSONP",s,{params:(new Fk).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})};s.options=function e(s,r){if(r===void 0){r={}}return this.request("OPTIONS",s,r)};s.patch=function e(s,r,n){if(n===void 0){n={}}return this.request("PATCH",s,Pk(n,r))};s.post=function e(s,r,n){if(n===void 0){n={}}return this.request("POST",s,Pk(n,r))};s.put=function e(s,r,n){if(n===void 0){n={}}return this.request("PUT",s,Pk(n,r))};return e}();var Ik=function(){function e(e,s){this.next=e,this.interceptor=s}var s=e.prototype;s.handle=function e(s){return this.interceptor.intercept(s,this.next)};return e}();var Jk=new Ce("HTTP_INTERCEPTORS");var Mk=function(){function e(){}var s=e.prototype;s.intercept=function e(s,r){return r.handle(s)};return e}();var Ok=/^\)\]\}',?\n/;var Rk=function e(){};var Lk=function(){function e(){}var s=e.prototype;s.build=function e(){return new XMLHttpRequest};return e}();var jk=function(){function e(e){this.xhrFactory=e}var s=e.prototype;s.handle=function e(s){var r=this;if("JSONP"===s.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new y(function(e){var n=r.xhrFactory.build();if(n.open(s.method,s.urlWithParams),s.withCredentials&&(n.withCredentials=!0),s.headers.forEach(function(e,s){return n.setRequestHeader(e,s.join(","))}),s.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!s.headers.has("Content-Type")){var a=s.detectContentTypeHeader();null!==a&&n.setRequestHeader("Content-Type",a)}if(s.responseType){var i=s.responseType.toLowerCase();n.responseType="json"!==i?i:"text"}var t=s.serializeBody();var o=null;var l=function e(){if(null!==o)return o;var r=1223===n.status?204:n.status,a=n.statusText||"OK",i=new fk(n.getAllResponseHeaders()),t=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||s.url;return o=new Dk({headers:i,status:r,statusText:a,url:t})},_=function r(){var a=l(),i=a.headers,t=a.status,o=a.statusText,_=a.url,w=null;204!==t&&(w=void 0===n.response?n.responseText:n.response),0===t&&(t=w?200:0);var g=t>=200&&t<300;if("json"===s.responseType&&"string"==typeof w){var m=w;w=w.replace(Ok,"");try{w=""!==w?JSON.parse(w):null}catch(p){w=m,g&&(g=!1,w={error:p,text:w})}}g?(e.next(new Bk({body:w,headers:i,status:t,statusText:o,url:_||void 0})),e.complete()):e.error(new Uk({error:w,headers:i,status:t,statusText:o,url:_||void 0}))},w=function s(r){var a=l(),i=a.url,t=new Uk({error:r,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(t)};var g=!1;var m=function r(a){g||(e.next(l()),g=!0);var i={type:Tk.DownloadProgress,loaded:a.loaded};a.lengthComputable&&(i.total=a.total),"text"===s.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},p=function s(r){var n={type:Tk.UploadProgress,loaded:r.loaded};r.lengthComputable&&(n.total=r.total),e.next(n)};return n.addEventListener("load",_),n.addEventListener("error",w),s.reportProgress&&(n.addEventListener("progress",m),null!==t&&n.upload&&n.upload.addEventListener("progress",p)),n.send(t),e.next({type:Tk.Sent}),function(){n.removeEventListener("error",w),n.removeEventListener("load",_),s.reportProgress&&(n.removeEventListener("progress",m),null!==t&&n.upload&&n.upload.removeEventListener("progress",p)),n.abort()}})};return e}();var Vk=new Ce("XSRF_COOKIE_NAME"),Gk=new Ce("XSRF_HEADER_NAME");var Hk=function e(){};var zk=function(){function e(e,s,r){this.doc=e,this.platform=s,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}var s=e.prototype;s.getToken=function e(){if("server"===this.platform)return null;var s=this.doc.cookie||"";return s!==this.lastCookieString&&(this.parseCount++,this.lastToken=yl(s,this.cookieName),this.lastCookieString=s),this.lastToken};return e}();var Wk=function(){function e(e,s){this.tokenService=e,this.headerName=s}var s=e.prototype;s.intercept=function e(s,r){var n=s.url.toLowerCase();if("GET"===s.method||"HEAD"===s.method||n.startsWith("http://")||n.startsWith("https://"))return r.handle(s);var a=this.tokenService.getToken();return null===a||s.headers.has(this.headerName)||(s=s.clone({headers:s.headers.set(this.headerName,a)})),r.handle(s)};return e}();var Qk=function(){function e(e,s){this.backend=e,this.injector=s,this.chain=null}var s=e.prototype;s.handle=function e(s){if(null===this.chain){var r=this.injector.get(Jk,[]);this.chain=r.reduceRight(function(e,s){return new Ik(e,s)},this.backend)}return this.chain.handle(s)};return e}();var Zk=function(){function e(){}e.disable=function s(){return{ngModule:e,providers:[{provide:Wk,useClass:Mk}]}};e.withOptions=function s(r){if(r===void 0){r={}}return{ngModule:e,providers:[r.cookieName?{provide:Vk,useValue:r.cookieName}:[],r.headerName?{provide:Gk,useValue:r.headerName}:[]]}};return e}();var $k=function e(){};var Yk=function(){var e=function(){function e(e){this.httpClient=e,this.time=new Date,this.courseNos=[],this.courseNames=[]}var s=e.prototype;s.get=function e(s){return this.courses[s]};s.set=function e(s){this.currentCourse=null===s?null:this.get(s)};s.loadData=function e(s){if(s===void 0){s=!1}if(!this.courses||s){this.time=new Date(kk.b),this.courses=kk.a,this.courseNos=Object.keys(this.courses);for(var r=this.courseNos,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{a=r.next();if(a.done)break;i=a.value}var t=i;this.courseNames.push(this.courses[t].info.name.toLowerCase())}}};s.search=function e(s,r){var n=r?this.courseNos:this.courseNames;var a={};for(var i in n){n[i].indexOf(s)>=0&&(a[this.courseNos[i]]=this.courses[this.courseNos[i]])}return this.getNFirst(a)};s.getNFirst=function e(s,r){if(r===void 0){r=0}0===r&&(r=Object.keys(s).length);var n=0,a={};for(var i=Object.keys(s).sort(),t=Array.isArray(i),o=0,i=t?i:i[Symbol.iterator]();;){var l;if(t){if(o>=i.length)break;l=i[o++]}else{o=i.next();if(o.done)break;l=o.value}var _=l;if(a[_]=s[_],++n>=r)break}return a};return e}();return e.ngInjectableDef=ve({factory:function s(){return new e(Re(Kk))},token:e,providedIn:"root"}),e}();var Xk=an({encapsulation:0,styles:[[""]],data:{}});function ex(e){return xt(0,[(e()(),rt(0,0,null,null,1,"course-info",[],null,null,null,ic,rc)),pa(1,114688,null,0,sc,[],{course:[0,"course"]},null)],function(e,s){e(s,1,0,s.component.courseService.currentCourse)},null)}function sx(e){return xt(0,[(e()(),rt(0,0,null,null,13,"tr",[],null,null,null,null,null)),(e()(),rt(1,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),rt(2,0,null,null,1,"a",[["href","javascript:void(0)"]],null,[[null,"click"]],function(e,s,r){var n=!0;return"click"===s&&(n=!1!==e.component.setCourse(e.context.$implicit)&&n),n},null,null)),(e()(),vt(3,null,["",""])),(e()(),rt(4,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(5,null,["",""])),(e()(),rt(6,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),rt(7,0,null,null,2,"div",[["style","text-align: right"]],null,null,null,null,null)),(e()(),vt(8,null,["",""])),ct(9,2),(e()(),rt(10,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(11,null,["",""])),(e()(),rt(12,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),vt(13,null,["",""]))],null,function(e,s){var r=s.component;e(s,3,0,s.context.$implicit),e(s,5,0,r.courseService.courses[s.context.$implicit].info.name);var n=sn(s,8,0,e(s,9,0,ea(s.parent.parent,1),r.courseService.courses[s.context.$implicit].info.ECTS,"1.0-1"));e(s,8,0,n),e(s,11,0,r.courseService.courses[s.context.$implicit].info.language),e(s,13,0,r.courseService.courses[s.context.$implicit].info.level)})}function rx(e){return xt(0,[(e()(),rt(0,0,null,null,21,"div",[["class","table--responsive-scroll"]],null,null,null,null,null)),(e()(),rt(1,0,null,null,20,"table",[["class","table table--zebra"]],null,null,null,null,null)),(e()(),rt(2,0,null,null,11,"thead",[],null,null,null,null,null)),(e()(),rt(3,0,null,null,10,"tr",[],null,null,null,null,null)),(e()(),rt(4,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Nummer"])),(e()(),rt(6,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Navn"])),(e()(),rt(8,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["ECTS"])),(e()(),rt(10,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Sprog"])),(e()(),rt(12,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),vt(-1,null,["Niveau"])),(e()(),rt(14,0,null,null,7,"tbody",[],null,null,null,null,null)),(e()(),st(16777216,null,null,2,null,sx)),pa(16,278528,null,0,Sl,[Mr,Ir,Dr],{ngForOf:[0,"ngForOf"]},null),ca(0,Xp,[]),(e()(),rt(18,0,null,null,3,"tr",[],null,null,null,null,null)),(e()(),rt(19,0,null,null,2,"td",[["colspan","6"]],null,null,null,null,null)),(e()(),rt(20,0,null,null,1,"a",[],null,[[null,"click"]],function(e,s,r){var n=!0,a=e.component;return"click"===s&&(n=0!=(a.showAll=!a.showAll)&&n),n},null,null)),(e()(),vt(21,null,["Vis "," s\xf8geresultater"]))],function(e,s){var r=s.component;e(s,16,0,sn(s,16,0,ea(s,17).transform(r.courseService.getNFirst(r.searchResults,r.showAll?0:10))))},function(e,s){e(s,21,0,s.component.showAll?"f\xe6rre":"alle")})}function nx(e){return xt(0,[ca(0,Il,[$a]),ca(0,Jl,[$a]),(e()(),rt(2,0,null,null,34,"div",[["class","row"]],null,null,null,null,null)),(e()(),rt(3,0,null,null,27,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),rt(4,0,null,null,2,"label",[["for","course-search"]],null,null,null,null,null)),(e()(),rt(5,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),vt(-1,null,["S\xf8g efter kurser:"])),(e()(),rt(7,0,null,null,23,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,iN,zv)),pa(8,7520256,null,9,Qc,[pr,Us,[2,Ic],[2,rd],[2,Wc],kc,ci,[2,Gv]],null,null),ot(603979776,1,{_controlNonStatic:0}),ot(335544320,2,{_controlStatic:0}),ot(603979776,3,{_labelChildNonStatic:0}),ot(335544320,4,{_labelChildStatic:0}),ot(603979776,5,{_placeholderChild:0}),ot(603979776,6,{_errorChildren:1}),ot(603979776,7,{_hintChildren:1}),ot(603979776,8,{_prefixChildren:1}),ot(603979776,9,{_suffixChildren:1}),(e()(),rt(18,0,null,1,12,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,s,r){var n=!0,a=e.component;return"submit"===s&&(n=!1!==ea(e,20).onSubmit(r)&&n),"reset"===s&&(n=!1!==ea(e,20).onReset()&&n),"ngSubmit"===s&&(n=!1!==a.setTopCourse()&&n),n},null,null)),pa(19,16384,null,0,XN,[],null,null),pa(20,540672,null,0,sk,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),da(2048,null,gN,null,[sk]),pa(22,16384,null,0,uN,[[4,gN]],null,null),(e()(),rt(23,0,null,null,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","searchBar"],["id","course-search"],["matInput",""],["placeholder","Kursusnr. eller -navn"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,s,r){var n=!0,a=e.component;return"input"===s&&(n=!1!==ea(e,24)._handleInput(r.target.value)&&n),"blur"===s&&(n=!1!==ea(e,24).onTouched()&&n),"compositionstart"===s&&(n=!1!==ea(e,24)._compositionStart()&&n),"compositionend"===s&&(n=!1!==ea(e,24)._compositionEnd(r.target.value)&&n),"blur"===s&&(n=!1!==ea(e,29)._focusChanged(!1)&&n),"focus"===s&&(n=!1!==ea(e,29)._focusChanged(!0)&&n),"input"===s&&(n=!1!==ea(e,29)._onInput()&&n),"input"===s&&(n=!1!==a.updateSearchResults(r.target.value,r.data)&&n),n},null,null)),pa(24,16384,null,0,_N,[Nr,pr,[2,lN]],null,null),da(1024,null,oN,function(e){return[e]},[_N]),pa(26,671744,null,0,ik,[[3,gN],[8,null],[8,null],[6,oN],[2,ek]],{name:[0,"name"]},null),da(2048,null,pN,null,[ik]),pa(28,16384,null,0,dN,[[4,pN]],null,null),pa(29,999424,null,0,uk,[pr,kc,[6,pN],[2,$N],[2,sk],Kc,[8,null],wk,ci],{id:[0,"id"],placeholder:[1,"placeholder"]},null),da(2048,[[1,4],[2,4]],Rc,null,[uk]),(e()(),rt(31,0,null,null,5,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),rt(32,0,null,null,4,"div",[["style","text-align: right"]],null,null,null,null,null)),(e()(),rt(33,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),vt(-1,null,["Senest opdateret"])),(e()(),vt(35,null,[" "," "])),ct(36,2),(e()(),st(16777216,null,null,1,null,ex)),pa(38,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null),(e()(),st(16777216,null,null,1,null,rx)),pa(40,16384,null,0,Tl,[Mr,Ir],{ngIf:[0,"ngIf"]},null)],function(e,s){var r=s.component;e(s,20,0,r.courseSearchForm),e(s,26,0,"searchBar"),e(s,29,0,"course-search","Kursusnr. eller -navn"),e(s,38,0,r.courseService.currentCourse),e(s,40,0,!r.courseService.currentCourse)},function(e,s){var r=s.component;e(s,7,1,["standard"==ea(s,8).appearance,"fill"==ea(s,8).appearance,"outline"==ea(s,8).appearance,"legacy"==ea(s,8).appearance,ea(s,8)._control.errorState,ea(s,8)._canLabelFloat,ea(s,8)._shouldLabelFloat(),ea(s,8)._hasFloatingLabel(),ea(s,8)._hideControlPlaceholder(),ea(s,8)._control.disabled,ea(s,8)._control.autofilled,ea(s,8)._control.focused,"accent"==ea(s,8).color,"warn"==ea(s,8).color,ea(s,8)._shouldForward("untouched"),ea(s,8)._shouldForward("touched"),ea(s,8)._shouldForward("pristine"),ea(s,8)._shouldForward("dirty"),ea(s,8)._shouldForward("valid"),ea(s,8)._shouldForward("invalid"),ea(s,8)._shouldForward("pending"),!ea(s,8)._animationsEnabled]),e(s,18,0,ea(s,22).ngClassUntouched,ea(s,22).ngClassTouched,ea(s,22).ngClassPristine,ea(s,22).ngClassDirty,ea(s,22).ngClassValid,ea(s,22).ngClassInvalid,ea(s,22).ngClassPending),e(s,23,1,[ea(s,28).ngClassUntouched,ea(s,28).ngClassTouched,ea(s,28).ngClassPristine,ea(s,28).ngClassDirty,ea(s,28).ngClassValid,ea(s,28).ngClassInvalid,ea(s,28).ngClassPending,ea(s,29)._isServer,ea(s,29).id,ea(s,29).placeholder,ea(s,29).disabled,ea(s,29).required,ea(s,29).readonly&&!ea(s,29)._isNativeSelect||null,ea(s,29)._ariaDescribedby||null,ea(s,29).errorState,ea(s,29).required.toString()]);var n=sn(s,35,0,e(s,36,0,ea(s,0),r.courseService.time,"longDate"));e(s,35,0,n)})}function ax(e){return xt(0,[(e()(),rt(0,0,null,null,1,"app-course",[],null,null,null,nx,Xk)),pa(1,114688,null,0,Nk,[Yk,_m,xp],null,null)],function(e,s){e(s,1,0)},null)}var ix=jn("app-course",Nk,ax,{},{},[]);var tx=function(){function e(){}var s=e.prototype;s.ngOnInit=function e(){};return e}();var ox=an({encapsulation:0,styles:[[""]],data:{}});function lx(e){return xt(0,[(e()(),rt(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),vt(-1,null,["Denne side er stadig under udvikling. I mellemtiden kan du nyde denne smukke Playboy-model."])),(e()(),rt(2,0,null,null,0,"img",[["src","../../assets/Mike1.webp"]],null,null,null,null,null))],null,null)}function _x(e){return xt(0,[(e()(),rt(0,0,null,null,1,"app-statistics",[],null,null,null,lx,ox)),pa(1,114688,null,0,tx,[],null,null)],function(e,s){e(s,1,0)},null)}var wx=jn("app-statistics",tx,_x,{},{},[]);var gx=function(){function e(){}var s=e.prototype;s.ngOnInit=function e(){};return e}();var mx=an({encapsulation:0,styles:[[""]],data:{}});function px(e){return xt(0,[(e()(),rt(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),vt(-1,null,["Denne side er stadig under udvikling. I mellemtiden kan du nyde denne smukke Playboy-model."])),(e()(),rt(2,0,null,null,0,"img",[["src","../../assets/Mike1.webp"]],null,null,null,null,null))],null,null)}function cx(e){return xt(0,[(e()(),rt(0,0,null,null,1,"app-overview",[],null,null,null,px,mx)),pa(1,114688,null,0,gx,[],null,null)],function(e,s){e(s,1,0)},null)}var dx=jn("app-overview",gx,cx,{},{},[]);var ux=function(){function e(){}var s=e.prototype;s.ngOnInit=function e(){};return e}();var vx=an({encapsulation:0,styles:[[""]],data:{}});function Nx(e){return xt(0,[(e()(),rt(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),vt(-1,null,["Denne side er stadig under udvikling. I mellemtiden kan du nyde denne smukke Playboy-model."])),(e()(),rt(2,0,null,null,0,"img",[["src","../../assets/Mike1.webp"]],null,null,null,null,null))],null,null)}function kx(e){return xt(0,[(e()(),rt(0,0,null,null,1,"app-docs",[],null,null,null,Nx,vx)),pa(1,114688,null,0,ux,[],null,null)],function(e,s){e(s,1,0)},null)}var xx=jn("app-docs",ux,kx,{},{},[]),Ex=an({encapsulation:0,styles:[[""]],data:{}});function fx(e){return xt(0,[(e()(),rt(0,0,null,null,38,"div",[["class","content"]],null,null,null,null,null)),(e()(),rt(1,0,null,null,1,"h1",[["class","section"]],null,null,null,null,null)),(e()(),vt(-1,null,["DTU Kursusoversigt"])),(e()(),rt(3,0,null,null,33,"div",[["class","container pb-8"]],null,null,null,null,null)),(e()(),rt(4,0,null,null,32,"ul",[["class","tabnav"]],null,null,null,null,null)),(e()(),rt(5,0,null,null,7,"li",[],null,null,null,null,null)),(e()(),rt(6,0,null,null,6,"a",[["class","nav-link"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,s,r){var n=!0;return"click"===s&&(n=!1!==ea(e,7).onClick(r.button,r.ctrlKey,r.metaKey,r.shiftKey)&&n),n},null,null)),pa(7,671744,[[2,4]],0,fp,[xp,_m,Do],{routerLink:[0,"routerLink"]},null),dt(8,1),pa(9,1720320,null,2,hp,[xp,pr,Nr,[2,Ep],[2,fp]],{routerLinkActive:[0,"routerLinkActive"]},null),ot(603979776,1,{links:1}),ot(603979776,2,{linksWithHrefs:1}),(e()(),vt(-1,null,["Kursus"])),(e()(),rt(13,0,null,null,7,"li",[],null,null,null,null,null)),(e()(),rt(14,0,null,null,6,"a",[["class","nav-link"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,s,r){var n=!0;return"click"===s&&(n=!1!==ea(e,15).onClick(r.button,r.ctrlKey,r.metaKey,r.shiftKey)&&n),n},null,null)),pa(15,671744,[[4,4]],0,fp,[xp,_m,Do],{routerLink:[0,"routerLink"]},null),dt(16,1),pa(17,1720320,null,2,hp,[xp,pr,Nr,[2,Ep],[2,fp]],{routerLinkActive:[0,"routerLinkActive"]},null),ot(603979776,3,{links:1}),ot(603979776,4,{linksWithHrefs:1}),(e()(),vt(-1,null,["Statistikker"])),(e()(),rt(21,0,null,null,7,"li",[],null,null,null,null,null)),(e()(),rt(22,0,null,null,6,"a",[["class","nav-link"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,s,r){var n=!0;return"click"===s&&(n=!1!==ea(e,23).onClick(r.button,r.ctrlKey,r.metaKey,r.shiftKey)&&n),n},null,null)),pa(23,671744,[[6,4]],0,fp,[xp,_m,Do],{routerLink:[0,"routerLink"]},null),dt(24,1),pa(25,1720320,null,2,hp,[xp,pr,Nr,[2,Ep],[2,fp]],{routerLinkActive:[0,"routerLinkActive"]},null),ot(603979776,5,{links:1}),ot(603979776,6,{linksWithHrefs:1}),(e()(),vt(-1,null,["Kursusoversigt"])),(e()(),rt(29,0,null,null,7,"li",[],null,null,null,null,null)),(e()(),rt(30,0,null,null,6,"a",[["class","nav-link"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,s,r){var n=!0;return"click"===s&&(n=!1!==ea(e,31).onClick(r.button,r.ctrlKey,r.metaKey,r.shiftKey)&&n),n},null,null)),pa(31,671744,[[8,4]],0,fp,[xp,_m,Do],{routerLink:[0,"routerLink"]},null),dt(32,1),pa(33,1720320,null,2,hp,[xp,pr,Nr,[2,Ep],[2,fp]],{routerLinkActive:[0,"routerLinkActive"]},null),ot(603979776,7,{links:1}),ot(603979776,8,{linksWithHrefs:1}),(e()(),vt(-1,null,["Dokumentation"])),(e()(),rt(37,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),pa(38,212992,null,0,bp,[yp,Mr,_r,[8,null],Us],null,null)],function(e,s){var r=e(s,8,0,"course");e(s,7,0,r),e(s,9,0,"active");var n=e(s,16,0,"statistics");e(s,15,0,n),e(s,17,0,"active");var a=e(s,24,0,"overview");e(s,23,0,a),e(s,25,0,"active");var i=e(s,32,0,"docs");e(s,31,0,i),e(s,33,0,"active"),e(s,38,0)},function(e,s){e(s,6,0,ea(s,7).target,ea(s,7).href),e(s,14,0,ea(s,15).target,ea(s,15).href),e(s,22,0,ea(s,23).target,ea(s,23).href),e(s,30,0,ea(s,31).target,ea(s,31).href)})}function qx(e){return xt(0,[(e()(),rt(0,0,null,null,1,"app-root",[],null,null,null,fx,Ex)),pa(1,49152,null,0,Co,[],null,null)],null,null)}var hx=jn("app-root",Co,qx,{},{},[]);var Fx=function e(){};var yx=yo(So,[Co],function(e){return function(e){var s={},r=[];var n=!1;for(var a=0;a